Method, system, and apparatus for providing alert synthesis in a data protection system

ABSTRACT

A method for diagnosing problems with protection of a data source and recovery of the same. The method includes diagnosing a copy of data located at the storage location and diagnosing a temporal version of the copy of data. Based on the diagnosis it is determined whether an error or a warning was detected. If either were detected a response is provided with a suggested solution.

CROSS-REFERENCES TO RELATED APPLICATIONS

This application is a continuation application of U.S. patentapplication Ser. No. 10/937,650, filed on Sep. 9, 2004, and entitled“METHOD, SYSTEM AND APPARATUS FOR PROVIDING ALERT SYNTHESIS IN A DATAPROTECTION SYSTEM,” which is incorporated herein in its entirety byreference.

This application cross-references U.S. patent application Ser. No.10/937,708, titled METHOD, SYSTEM, AND APPARATUS FOR CONFIGURING A DATAPROTECTION SYSTEM, and filed on Sep. 9, 2004, which is incorporated byreference herein;

This application cross-references U.S. patent application Ser. No.10/937,204, titled METHOD, SYSTEM, AND APPARATUS FOR CREATING SAVEDSEARCHES AND AUTO DISCOVERY GROUPS FOR A DATA PROTECTION SYSTEM, andfiled on Sep. 9, 2004, which is incorporated by reference herein;

This application cross-references U.S. patent application Ser. No.10/937,061, titled METHOD, SYSTEM, AND APPARATUS, FOR TRANSLATINGLOGICAL INFORMATION REPRESENTATIVE OF PHYSICAL DATA IN A DATA PROTECTIONSYSTEM, and filed on Sep. 9, 2004, which is incorporated by referenceherein;

This application cross-references U.S. patent application Ser. No.10/937,651, titled METHOD, SYSTEM, AND APPARATUS FOR CREATING AN ARCHIVEROUTINE FOR PROTECTING DATA IN A DATA PROTECTION SYSTEM, and filed onSep. 9, 2004, which is incorporated by reference herein;

This application cross-references U.S. patent application Ser. No.10/937,060, titled METHOD, SYSTEM, AND APPARATUS FOR PROVIDING RESILIENTDATA TRANSFER IN A DATA PROTECTION SYSTEM, and filed on Sep. 9, 2004,which is incorporated by reference herein; and

This application cross-references U.S. patent application Ser. No.10/937,218, titled METHOD, SYSTEM, AND APPARATUS FOR CREATING ANARCHITECTURAL MODEL FOR GENERATING ROBUST AND EASY TO MANAGE DATAPROTECTION APPLICATIONS IN A DATA PROTECTION SYSTEM, and filed on Sep.9, 2004, which is incorporated by reference herein.

FIELD OF THE INVENTION

In general, the present invention relates to data protection and dataprotection systems, and in particular, to a system, method and apparatusfor controlling the protection and recovery of data.

BACKGROUND OF THE INVENTION

Generally described, large scale computer systems often contain severalcomputing devices and large amounts of data. In such a system, computingdevices are often added and removed. Likewise, existing computingdevices are often changed through the addition of shares, ExchangeStorage Groups, databases, volumes, and other changes to data stored onthe computing devices. For organizations utilizing such a computersystem, there is generally a need to protect the data stored on thesystem, often by creating a backup of the data.

However, individuals responsible for protecting the system are often notinformed of additions and/or changes to the system and therefore areunaware of new resources that need protection. For example, if a newcomputing device, such as a server, is added to the system and theindividual responsible for protecting the system is not informed of theaddition, data on the new computing device, and the new computingdevice, may remain unprotected.

This problem increases for systems that allow individuals to operatewithin the system at a logical level rather than at a physical level.While individuals operate at the logical level, protection is typicallydetermined at the physical level. In such an environment, problems mayoccur when operations at the logical level require changes to the backupprocedure. For example, if the logical path \\history\public\toolspoints to a share on server history1 and it is decided to move\\history\public\tools to point to a different share on server history2,if the individual responsible for protection is not informed of thechange, the old share may continue to be protected while the new shareremains unprotected.

The problem increases still further when a single logical path mayrepresent a set of physical alternatives, which contain synchronizedcopies of the underlying data For example, \\history\docs may point toidentical shares on both history1 and history2; only one of theidentical underlying folders should be protected by the system.

Failure to protect material on a large system typically results becausethe individual responsible for protection must manually identifyresources and the data that is to be protected and manually configurethe protection. As the system changes, unless they become aware of thechange, data and resources may go unprotected. Additionally, forarchiving backups of data to physical media, the individual mustmanually determine what media is to be used for protection and when/howto rotate the media. For large systems, manually identifying changes,configuring protection, and maintaining archives is complex and changesare difficult. Such manual identification, configuration andmodification of protection often results in omission of data andresources that need protection and problems with the protection itself.

When problems do arise, typically the individual must be able todetermine the problem at a detailed level and have knowledge as to howto resolve the problem, without being provided information from theprotection system itself.

Thus, there is a need for a system, method, and apparatus for automatingthe protection of a computer system, identifying when changes to thesystem occur, providing guidance to a user when problems arise withprotection, and allowing individuals to create protection by working ina logical namespace.

SUMMARY OF THE INVENTION

According to an aspect of the present invention, a method for informinga user of the state of a data protection system is provided. The methodmonitors activities of the data protection system and determines ifthere are any potential problems with the data protection system. If itis determined that there are no potential problems with the dataprotection system, an informational report regarding the state of thedata protection system is provided to the user. However, if it isdetermined that there are potential problems with the data protectionsystem, the severity of the potential problem is determined andclassified based on the determined severity. That classification is usedto generate an appropriate report to a user regarding the potentialproblem.

A method for diagnosing data at a storage location is provided. Themethod includes diagnosing a copy of data located at the storagelocation and diagnosing a temporal version of the copy of data. Based onthe diagnosis it is determined whether an error or a warning wasdetected. If either were detected, a response is provided with asuggested solution.

In accordance with an aspect of the present invention, a method fordiagnosing a copy of data is provided. It is determined if the copy isinvalid, and if so, a determination is made as to whether a validationjob is currently running. If the validation job failed, an appropriateresponse is reported to a user.

In accordance with another aspect of the present invention, in a dataprotection system having a production location, a storage location, anda communication path for transmitting data between the productionlocation and the storage location, a method for diagnosing generation ofthe copy on the storage location with the changes on the data on theproduction location is provided. The method includes determining if thecopy process is working well over a period of time by computing thenumber of failures and reason for failures. Subsequent to computation,an alert is provided depending upon the mode of replication, the countof failure and the reasons for failure.

In accordance with another aspect of the present invention, in a dataprotection system having a production location, a storage location, anda communication path for transmitting data between the productionlocation and the storage location, a method for diagnosing a temporalversion is provided. The method includes determining if an oldestintended temporal version is available, and if so, computing a missingnumber of temporal versions over a predetermined period of time.Subsequent to computation, a report is provided dependent upon apercentage of missing temporal versions over the predetermined period oftime.

In accordance with yet another aspect of the present invention, in adata protection system having a production location, a storage location,and a communication path for transmitting data between the productionlocation and the storage location, a method for diagnosing a recovery ofdata from the storage location to the production location is provided.The method includes determining if a recovery job failed, and if so,obtaining a reason for the failure and reporting an error identifyingthe failure. In addition, a recommendation to resolve the failure isalso included in the report.

BRIEF DESCRIPTION OF THE DRAWINGS

The foregoing aspects and many of the attendant advantages of thisinvention will become more readily appreciated as the same become betterunderstood by reference to the following detailed description, whentaken in conjunction with the accompanying drawings, wherein:

FIGS. 1A-2 are block diagrams of a data protection system for managingthe protection and recovery of data, in accordance with an embodiment ofthe present invention;

FIG. 3 is a flow diagram of a data protection system describing theinitial selection and protection of protectable objects that are locatedat a production location, in accordance with an embodiment of thepresent invention;

FIG. 4 illustrates a block diagram of a plurality of Namespaces andNamespace Elements that are published and displayed on a user interfacefor user interaction and selection, in accordance with an embodiment ofthe present invention;

FIG. 5 illustrates the mapping between a Namespace Element andprotectable objects, in accordance with an embodiment of the presentinvention;

FIG. 6 illustrates a block diagram of a schema for associating typesNamespaces and types of Namespace Elements, in accordance with anembodiment of the present invention;

FIG. 7 illustrates a block diagram of a schema for mapping a logicalNamespace Element to a physical protectable object, in accordance withan embodiment of the present invention;

FIG. 8 illustrates a block diagram of a production location thatcontains protectable objects that may be protected by the dataprotection system, in accordance with an embodiment of the presentinvention;

FIGS. 9A-9B are block diagrams of protectable objects at a productionlocation and the grouping of protectable objects into a protected group,in accordance with an embodiment of the present invention;

FIG. 10 illustrates a block diagram of a protected group containing theselected Namespace Elements, the mapped protected objects, and theprotected group's properties, in accordance with an embodiment of thepresent invention;

FIG. 11 is a flow diagram of a configuration routine for configuring aplan for protecting a protected group, in accordance with an embodimentof the present invention;

FIG. 12 illustrates a protected group creation routine that describes inmore detail the creation of a protected group, according to anembodiment of the present invention;

FIG. 13 illustrates an overlap detection routine for detecting overlapof data sources contained in two or more protected groups, in accordancewith an embodiment of the present invention;

FIG. 14 is a flow diagram of a data protection system illustrating theflow of a recovery process for recovering a protected object, inaccordance with an embodiment of the present invention;

FIG. 15 is a block diagram illustrating a more detailed view ofrecoverable objects that may be contained on a storage location,according to an embodiment of the present invention;

FIG. 16 illustrates a recovery routine for recovering protected objectsfrom a storage location, in accordance with an embodiment of the presentinvention;

FIGS. 17-23A, and 24 illustrate a flow diagram for creating andutilizing an auto discovery group, in accordance with an embodiment ofthe present invention;

FIG. 23B illustrates a remap resolution routine for resolving the remapof a protected namespace element, in accordance with an embodiment ofthe present invention;

FIG. 25 illustrates a flow diagram of an initial discovery routine forinitially discovering the mappings between top-level Namespace Elementsand protectable objects, in accordance with an embodiment of the presentinvention;

FIG. 26 illustrates a flow diagram of a scheduled discovery routine fordiscovery of mappings between Namespaces and Namespace Elements andprotectable objects located at a production location, in accordance withan embodiment of the present invention;

FIG. 27 is a flow diagram of an auto discovery group creation routine,in accordance with an embodiment of the present invention;

FIGS. 28 and 29 illustrate a flow diagram of an auto discovery groupupdate routine, in accordance with an embodiment of the presentinvention;

FIG. 30 illustrates a flow diagram for translating protection intentsinto a plan for protecting a set of data, in accordance with anembodiment of the present invention;

FIGS. 31 and 32 illustrate a flow diagram of an intent translationroutine for translating protection intents into a detailed plan forprotecting physical objects located at a production location, inaccordance with an embodiment of the present invention;

FIG. 33 is a flow diagram of a protection plan creation routine forcreating a protection plan for a protected group, in accordance with anembodiment of the present invention;

FIG. 34 is a flow diagram of a preparation plan execution routine forexecution a preparation plan, in accordance with an embodiment of thepresent invention;

FIG. 35 is a flow diagram of a validation routine for validating a copyof data located at a storage location, in accordance with an embodimentof the present invention;

FIG. 36 is a flow diagram of a scheduled validation routine forvalidating a copy of objects located at a storage location, inaccordance with an embodiment of the present invention;

FIG. 37 illustrates a block diagram of state transitions for a storageportion of a storage location and/or an entire storage location, inaccordance with an embodiment of the present invention;

FIG. 38 illustrates a flow diagram of a restart routine for restartingthe intent translation routine subsequent to an interruption thatoccurred during a previous intent translation routine, in accordancewith an embodiment of the present invention;

FIG. 39 illustrates an archive protection plan creation routine forgenerating a plan for archiving data, in accordance with an embodimentof the present invention;

FIG. 40 is a table illustrating an example of the different generationsthat may be used for generating an archive scheme, in accordance with anembodiment of the present invention;

FIG. 41 is a flow routine for allocating media for archiving data, inaccordance with an embodiment of the present invention;

FIG. 42 illustrates a block diagram of a data protection system, inaccordance with an embodiment of the present invention;

FIGS. 43-44 illustrate a flow diagram of a data transfer monitoringroutine performed by a data protection system, in accordance with anembodiment of the present invention;

FIG. 45 illustrate a flow diagram of a data protection system thatrestarts transmission of change records from a production location to astorage location, in accordance with an embodiment of the presentinvention;

FIGS. 46 and 47 illustrate flow diagrams of a validation routine forvalidating a replica, in accordance with an embodiment of the presentinvention;

FIG. 48A is a flow diagram of a command processing routine forprocessing commands received by a production location, in accordancewith an embodiment of the present invention;

FIG. 48B is a flow diagram of a transmit data routine for transmittingchange records from a production location to a storage location, inaccordance with an embodiment of the present invention;

FIG. 48C is a flow diagram of a validation routine for validating data,in accordance with an embodiment of the present invention;

FIG. 49A is a flow diagram of a command processing routine forprocessing commands received by a storage location, in accordance withan embodiment of the present invention;

FIG. 49B is a flow diagram of a receive records routine for receivingrecords at a storage location, in accordance with an embodiment of thepresent invention;

FIG. 49C is a flow diagram of a apply change records routine forapplying change records to a replica at a storage location, inaccordance with an embodiment of the present invention;

FIG. 50 is a block diagram of a job containing a plurality of tasks, inaccordance with an embodiment of the present invention;

FIG. 51 is a flow diagram illustrating the monitoring of tasks andcreation of a makeup job, in accordance with an embodiment of thepresent invention;

FIG. 52 illustrates a flow diagram of a makeup job routine foridentifying a task failure and creating a makeup job if that task wascritical, in accordance with an embodiment of the present invention;

FIG. 53 illustrates a flow diagram for diagnosing problems associatedwith copy and temporal versions, and for generating a report withsuggested corrections if a problem is detected, in accordance with anembodiment of the present invention;

FIGS. 54-56 illustrate a flow diagram describing the details of a copydiagnosis routine for diagnosing potential problems with the copying ofdata in the data protection system, in accordance with an embodiment ofthe present invention;

FIGS. 57-58 illustrate a flow diagram describing a temporal versiondiagnosis routine for diagnosing potential problems with a temporalversion generated by the data protection system, in accordance with anembodiment of the present invention; and

FIG. 59 is a flow diagram describing a recovery diagnosis routine fordiagnosing potential problems with recovery of information in the dataprotection system, in accordance with an embodiment of the presentinvention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

FIG. 1A is a block diagram of a data protection system for managing theprotection and recovery of data, in accordance with an embodiment of thepresent invention. Embodiments of the data protection system 100described herein provide a user, such as a system administrator, withthe ability to easily manage the protection and recovery of data.Typically, data management and protection is desired for data that isactively being produced and modified at a production location 103. Thatdata is protected and stored as a replica or copy of the data at astorage location 105. The storage location may be at a remote locationfrom the production location and/or at the same location as theproduction location. Additionally, the storage location may includemultiple locations for different forms of storage. For example, replicasof data may be maintained at one location and archive of that data maybe maintained at a second location. Accordingly, a storage locationgenerally describes any combination and/or type of location for whichdata may be stored and protected.

As will be described herein, the data protection system 100 includes adata protector 101 that communicates with a production location 103 anda storage location 105 to monitor the protection and flow of databetween the production location 103 and the storage location 105. Thedata protector 101, as illustrated in FIG. 1A, may exist on a singlecomputing device, such as a server, or be distributed over multiplecomputing devices. The data protector 101 deploys and communicates withagents located on different computing devices within the data protectionsystem 100, such as the production location 103 and/or the storagelocation 105 to enable distributed control and management of dataprotection between multiple devices. Examples of the types of dataprotection provided by the data protection system 100 include, but arenot limited to, replication with temporal versions, traditional archiveto removable media, such as tape or disk, and a combination of bothreplication and archive. It will be appreciated that any other formand/or combination of protection may be utilized with embodiments of thepresent invention and that replication, temporal versions, and archiveare simply examples.

FIG. 1B illustrates an alternative embodiment of the data protectionsystem 100. In particular, the data protector 110 may reside partiallyor entirely at the production location 111. In such an embodiment, thedata protector 110 provides communication between itself and theproduction location 111, and between itself and the storage location113.

FIG. 1C illustrates yet another embodiment of the data protection system100 that is used for protecting and recovering data, in accordance withan embodiment of the present invention. As illustrated in FIG. 1C, thedata protector 120 may reside partially or entirely at the storagelocation 123. In such an embodiment, the data protector 120 providescommunication between itself and the storage location 123 and betweenitself and the production location 121.

FIG. 2 is another block diagram of a data protection system 200 forprotecting and recovering data, in accordance with an embodiment of thepresent invention. The data protection system 200 illustrates thatmultiple production locations, such as production location1 203,production location2 205, through production locationN 207, may interactwith the data protector 201 to store replicas and/or temporal versionsof data originating from production locations. The data protector2 201communicates with the production locations 203, 205, 207 and providesprotection of the data residing on those production locations at arespective storage location, such as storage locationA 209, storagelocationB 211, and storage locationX 213. The embodiments describedherein may be utilized with any number and combination of dataproduction locations and storage locations.

As will be appreciated, and as illustrated in FIGS. 1A-2, any type ofconfiguration of the data protection system may be utilized according toembodiments of the present invention for protecting and recovering data.

Overall, embodiments of the data protection system described hereinprovide the ability for a user of the data protection system to specifyat a high level what data at a production location is important and howthe user wants to protect that data. In particular, the system describedherein provides a user with the ability to logically identify what dataat a particular production location they want to protect and how theywant to protect it. The data protection system converts that logicalidentification into a series of “jobs” that are scheduled and executedto protect the data. Jobs, as described below, include the detailedinformation necessary for protecting the data identified by a user. Forexample, a job may perform replication, validation, temporal versionmanagement, archive and media management, etc.

In order to provide users with the ability to select data at a logicallevel, the data protection system provides users with a logicalrepresentation of data stored at a production location in the form of a“Namespace” and “Namespace Elements.” A Namespace, as described herein,is a logical representation of an application. For example, applicationsthat may be represented within the data protection system as Namespacesinclude, but are not limited to, a Distributed File System (“DFS”), alocal file system, web application Namespaces, such as SharePoint, andExchange Namespaces. As will be appreciated, the list of exemplaryapplications is for illustration purposes only and is not intended to belimiting in any way. Any type of application may be used with the dataprotection system and identified as a Namespace.

A Namespace Element, as described herein, is a logical representation ofa physical object, such as data, and is the primary entity that makes upa Namespace. For example, Namespace Elements may be, but are not limitedto, DFS links, servers, shares, volumes, folders, or Exchange StorageGroups. Generally described, an Exchange Storage Group is a collectionof databases that share a common log. As will be appreciated by oneskilled in the relevant art, Namespace Elements may be used to representany type of a physical object or collection of physical objects.

To protect data, a user searches or navigates in the logical Namespaceand selects one or more of the Namespace Elements. Selected NamespaceElements are associated with an existing “protected group” or used tocreate a new protected group. When a Namespace Element is associatedwith a protected group, the physical objects (data) associated with thatNamespace Element also become part of the protected group. A protectedgroup, as described herein, is a logical grouping of Namespace Elementsand associated protected objects to which the same protection rules areapplied.

Each Namespace Element is used to locate one or more physical objects(data), referred to herein as “protectable objects,” that may be addedto a protected group. Once located, the protectable objects may beselected for protection. When a protectable object is selected forprotection, the selected protectable object becomes a “protected object”that is part of a protected group. A protectable object, as describedherein, is physical information/data that may be protected. For example,a protectable object may be, but is not limited to, a folder, file,electronic mailbox, database, website, etc. A protected object, as usedherein, is a protectable object that has been identified and selectedfor protection.

In addition to creating protected groups, users can specify at a highlevel how, when (how frequently), and for how long they want theprotected group to be protected. Additionally, a user may specify forhow long they want copies and archives of the protected group to beretained. Such high level specifications may span all protectionactivities, such as replication, archive, media management, and anycombination thereof. Based on the specifications provided by a user, adetailed plan is created for protecting the objects of a protectedgroup.

To recover data, a user is provided the ability to search or navigate inthe logical Namespace to locate the data that that the user wants torecover. The logical path to the data to be recovered is then used tolocate one or more recoverable objects, as described below. Eachrecoverable object represents a version of a protected object or aportion thereof.

FIG. 3 is a flow diagram of a data protection system 300 describing theinitial selection and protection of protectable objects that are locatedat a production location, in accordance with an embodiment of thepresent invention. As illustrated in FIG. 3, the data protection system300 deploys agents to the production location 305 to enable thediscovery of protectable objects located at the production location 305and identifies the Namespaces and Namespace Elements corresponding tothose protectable objects. Those Namespaces and Namespace Elements arepublished for user interaction and displayed on a user interface 303.

For example, FIG. 4 illustrates a block diagram of a plurality ofNamespaces and Namespace Elements that are published and displayed on auser interface 303 for user interaction and selection, in accordancewith an embodiment of the present invention. As will be appreciated byone skilled in the relevant art, the illustration of FIG. 4 is exemplaryonly, and any other configuration may be displayed with embodiments ofthe present invention. For example, the display may include volumes butnot shares.

The display 400 illustrates a DFS ROOTS Namespace 401 and a SERVERSNamespace 403. The DFS ROOTS Namespace 401 includes two NamespaceElements 405, 407, both of which are DFS ROOTs. The Namespace Elementsidentified under the DFS ROOTS Namespace 401 are \\ABCD\PUBLIC 405 and\\EFG\PRIVATE 407. Additionally, the SERVERS Namespace 403 includesseveral Namespace Elements 409, 411, 413, 415, 421, 423, 425. ThoseNamespace Elements may also include several additional NamespaceElements. For example, SERVER1 409 includes several Namespace Elementtypes, such as SHARES Namespace Element type 411. Likewise the SHARESNamespace Element type 411 includes SHARE1 Namespace Element 413 andSHARE2 Namespace Element 415. Additionally, the SHARES Namespace Element411, SHARE1 Namespace Element 413, and SHARE2 Namespace Element 415 areall logical representations of protectable objects.

A user may interact with the display 400 of Namespaces and NamespaceElements by selecting expand or collapse boxes, such as expand box 417.Additionally, a user may select one or more of the Namespace Elementsfor protection by selecting a selection box, such as selection box 419.In an alternative embodiment, in addition to being able to selectNamespace Elements for protection, a user may be able to select aNamespace for protection.

Referring back to FIG. 3, upon representation of the display 400 ofNamespaces and Namespace Elements on the user interface 303, a userselects which of the Namespace Elements the user wants protected by thedata protection system 300. Additionally, a user may provide “protectionintents” for the selected Namespace Elements. Protection intents, asdescribed herein, are a high level description of how selected data isto be protected. For example, a user may indicate that the selectedNamespace Elements are to be protected by backing up a copy of theobjects once every night and keeping weekly copies for a duration of oneyear. The selected Namespace Elements, and the associated protectionintents, are transferred from the user interface 303 to the dataprotector 301.

The data protector 301, using the selected Namespace Elements andprotection intents, creates a protected group for the protectableobjects identified by the selected Namespace Elements. Upon selection,the protectable objects become protected objects. The protected groupincludes the selected Namespace Elements, an identification of theassociated protected objects, and a detailed plan as to how theprotected objects are to be protected. In addition, the data protector301 creates at least one auto discovery group, as described below. In anembodiment, the data protector 301 may also create a saved searchesroutine, as described below.

Creation of a protected group is accomplished by mapping the selectedlogical objects (Namespace Elements) to the appropriate protectableobjects located on the production location. The identified protectableobjects are then added as members of the protected group and becomeprotected objects. Protectable objects may be added to an existingprotected group or may form a new protected group. Additionally, theprotection intents are used to create a group plan for protecting theprotected group. The group plan includes, but is not limited to, aresource plan, preparation plan, and protection plan, each of which isdescribed in detail below. The group plan, and the plans within thegroup, consists of one or more jobs and scheduling parameters. In thecase of a resource plan, an amount of resources to be allocated isidentified. The allocated resources may include, but are not limited to,disk space for a replica, removable media for archive, such as a disk ortape, a combination of both a replica and removable media, etc. Thescheduling parameters identify when the jobs are to be executed.

After generation of the protected group, the plan for protecting thedata, the auto discovery groups and the saved searches, the dataprotector 301 prepares the production location 305 and the storagelocation 307 for protection. In particular, the data protector deploysagents that enable communication and transfer of data from theproduction location 305 to the storage location 307. Once the productionlocation and storage location have been prepared for protection,protection begins and a copy of the data for the protected objects istransferred from the production location 305 to the storage location307. The transferred copy of data, as described below, may be maintainedas a replica, archive copy, or any other type of data protection.

In preparing the storage location 307 for protection, as discussed inmore detail below, the data protector 301 allocates the necessaryresources (via a resource plan) for storing a copy of the physicalobjects as requested by the user. To begin protection, a job isinitiated to create an initial copy of the selected protectable objectsstored at the production location 305, transmit the copy, and store thecopy at the storage location 307. If the copy is a replica, it is thenvalidated to ensure its accuracy through the execution of a validationjob. If the copy is being archived to removable media, the initial copyis a full backup of the selected protectable objects. After the initialcopy is generated, the data protector 301 creates jobs to periodicallyupdate the copy, or create additional copies (as is the case witharchive) with changes that have been made to the information located atthe production location 305.

To identify the protectable objects stored at a production location 305associated with selected Namespace Elements, the data protector 301 mapsthe logical objects (Namespace Elements) to the physical objects(protectable objects). Referring again to FIG. 4, two Namespaces, DFSROOTS 401, and SERVERS Namespace 403 are displayed, each having aplurality of Namespace Elements. A user may choose one or more of theNamespace Elements. In one embodiment, when a Namespace Element isselected, all contained Namespace Elements are also selected by default.Using FIG. 4 as an example, if a user selects Storage Group1 421 onSERVER1 409, then DATABASE A 423 and DATABASE B 425 are automaticallyselected as well. A user may unselect one or more of the NamespaceElements.

Each Namespace Element maps to one or more protectable objects locatedat a production location 305. For example, Namespace Element\\ABCD\PUBLIC 405 maps to multiple protectable objects. Referring toFIG. 5, Namespace Element \\ABCD\PUBLIC 505 maps to three protectableobjects located at the production location 305. In particular, theNamespace Element \\ABCD\PUBLIC 505 maps to D:\folder on server1 507,D:\folder on server2 509, and F:\on server3 511. Each of the protectableobjects 507, 509, 511 is located within the production location 305.

In order for the data protector to search and navigate Namespaces, aswell as map from a logical object, such as Namespace Element 505, to aphysical object, a schema associating the Namespaces and NamespaceElements is created. The schema is an abstract representation of thecomposition of an application Namespace, where possible Namespacesinclude, but are not limited to, the Distributed File System andExchange.

FIG. 6 illustrates a block diagram of one such schema for associatingtypes of Namespaces and types of Namespace Elements representing theVolumes Schema, in accordance with an embodiment of the presentinvention. The schema is represented as a directed graph, where nodes inthe graph represent types of Namespace Elements within the applicationNamespace and links represent containment and junction relationshipsbetween Namespace Elements. The containment relationships and junctionrelationships between types of Namespace Elements represent all of thepossible ways that instances of those types can be related. Referring toFIG. 6, containment relationships are illustrated as single arrow linesand junction relationships are illustrated as double arrow lines. Forexample, a Namespace Element of the type “DFS root” 603 may represent ajunction 617 to a Namespace Element of the type “share” 609, and theshare 609 may represent a junction 619 to a volume 611, or a junction toa folder 615.

A containment relationship is a straightforward parent/childrelationship between Namespace Elements, in which the parent islogically comprised of the children. For example, the domain 601contains 623 a server 607 and contains 625 a DFS ROOT 603. The server607 contains 627 shares 609 and contains 629 volumes 611. A volume 611contains 631 folders 615 and contains 633 mount points 613. A folder 615may contain other folders and contain files (not shown).

A junction relationship is a source/target relationship, in which asource Namespace Element is a logical synonym for a target NamespaceElement, meaning that the source and target paths represent the sameunderlying object in two different Namespaces. A junction relationshipmay be a one-to-many relationship. That is, a single source NamespaceElement may have multiple target Namespace Elements, in which case thetargets represent alternative locations from which to retrieve theunderlying data represented by the source. For example, a DFS root 603may map 617 to multiple shares 609 as targets. A junction relationshipmay also be many-to-one—the target of a junction may have multiplelogical names in other Namespaces. For example, a folder 615 can havemany shares 609 mapping 621 to that folder 615.

Additionally, multiple logical Namespace Elements may map to the sameprotectable object. For example, the SHARE1 Namespace Element 513 mapsto E:\PRIVATE on server1 515. Likewise, the SHARE2 Namespace Element 517may also map to E:\PRIVATE on server1 515.

FIG. 7 illustrates a block diagram of a schema for mapping a logicalNamespace Element to a physical protectable object, in accordance withan embodiment of the present invention. In particular, the schema 700illustrates that the domain ABCD 701 has a containment relationship withDFS ROOT-public 703 and three servers 705. Likewise, the DFS ROOT-public703 has a containment relationship with three DFS links 707 includinglink1 707A, link2 707B, and link3 707C. Link1 707A, link2 707B, andlink3 707C each include a junction relationship to a share 711. Inparticular, link1 707A includes a junction to \\server\share, link2 707Bincludes a junction to \\server2\share, and link3 707C includes ajunction to \\server3\share. \\server1\share, \\server2\share,\\server3\share are each logical objects in a different Namespace thanthe DFS Namespace. This is illustrated by traversal of the junction 719between the DFS link 707 and the share 711. In particular,\\server1\share, \\server2\share, and \\server3\share are in the UNCserver Namespace. Referring to the share 711, to complete the mapping of\\ABCD\PUBLIC, a determination is made as to what each of the shares mapto. As discussed above, a share can map to a volume 713, and/or a folder717. Thus, continuing with the example, it is determined that thelogical object \\server1\share maps to the physical object of D:\folderon server1; \\server2\share maps to D:\folder on server2; andserver3\share maps to F:\on server3. D:\folder on server1, D:\folder onserver2, and F:\on server3 are the three physical protectable objectsrepresented by the logical object of \\ABCD\PUBLIC 505.

As illustrated by the example of FIG. 7, utilizing the schema 600 (FIG.6) it can be determined from a logical Namespace Element, the mappingrelationship to physical objects stored on a production location thatare represented by that Namespace Element From each point in the schema600 it is known what relationships may be searched for from that pointto link to the next portion of the mapping.

The data protector's Namespace traversal capabilities may be applied toany type of application for browsing, searching, and mapping fromlogical Namespaces and Namespace Elements to physical objects stored ata production location. For example, via a user interface, a user mayspecify search parameters, including wild cards, and the data protectionsystem can query an existing list of Namespaces and Namespace Elementsand provide the appropriate results. The user interface will pass thesearch request to the data protector, and the data protector will sendthe results back to the User Interface. The data protector supportsgeneric operations to “search,” “navigate,” and “map” betweenNamespaces, where each application Namespace's specific structure can becaptured in a schema. To extend the data protector to support newapplications, then, one simply needs to provide a module to performbasic operations on that namespace to traverse containment relationshipsand junctions, as well as the schema, which describes how to composethose operations into larger “search,” “navigate,” and “map” operations.

Embodiments of the present invention may also be used for non-dataprotection applications as well. For example, storage reports may beproduced that illustrate how storage is being used across a productionlocation, or across a set of servers within a production location. Insuch an embodiment, a user can configure a report to show all fileslarger than 100 MB underneath a DFS root.

A production location includes several different types of objects thatmay be protected. For example, FIG. 8 illustrates a block diagram of aproduction location 800 that contains protectable objects that may beprotected by the data protection system, in accordance with anembodiment of the present invention. Included in the production location800 are three servers 801, 803, and 805. Each server may be its owncomputing device, or a group of computing devices that appear as asingle server. Each server may be at a central location or distributedgeographically.

Included in the server, such as server-1 801 are one or more “datasources.” A data source, as used herein, is a high level of abstractionof application data operated on by the data protector. A data sourceexposes its physical data as one or more protectable objects and thedata source itself may be a protectable object. A data source iscontained within a single server and a server may contain one or moredata sources. For example, server-1 801 includes two data sources, datasource 1 (DS1) 807 and data source 2 (DS2) 821.

Likewise, data source 1 807 contains six protectable objects 809, 811,813, 815, 817, and 819. Similarly, data source 2821 contains twoprotectable objects 823 and 825. In addition to data sources containingprotectable objects, the data sources themselves may be protectableobjects. Still further, protectable objects may contain otherprotectable objects. For example, data source 3 835 contains eightprotectable objects 827, 829, 831, 833, 837, 839, 841, 843. Protectableobject 837 contains protectable object 839, which contains protectableobjects 841 and 843.

Server-3 805 contains four data sources, data source 4 (DS4) 845, datasource 5 (DS5) 851, data source 6 (DS6) 857, and data source 7 (DS7)859. Each of the four data sources 845, 851, 857, and 859 may beprotectable objects. Contained within data source 4 845 are twoprotectable objects 847 and 849. Data source 5 851 contains twoprotectable objects 853 and 855, data source 6 857 contains noprotectable objects, and data source 7 859 contains two protectableobjects 861 and 863.

Each protectable object is of a particular protectable object type thatallows the data protection system to expose the protectable objects ineach data source at different levels of granularity. For example, thedata protection system may expose an Exchange Storage Group data sourcein its entirety as a protectable object, with a protected object type ofstorage group. It may also divide up the same storage group data sourceinto multiple protectable objects, each protectable object having aprotectable object type of database. There may even be two or moredifferent protectable object types for the same protectable object. Forexample, the data protection system may expose a volume at the blocklevel as a protectable object of one protectable object type, and at thefile level as a protectable object of another protectable object type.

Examples of data sources include, but are not limited to, operatingsystems, system volumes, Exchange Storage Groups, SQL databases, etc.Examples of protectable object types for the server include, but are notlimited to, system protected files and operating system data stores,such as the registry and active directory. The file system volumeprotectable object types include, but are not limited to, directoriesand files. File system volume entities may be located by file share orDFS linked target Namespace Elements. The protectable object types forthe Exchange Storage Group include, but are not limited to, databasesand mailboxes.

As discussed above, each selectable Namespace Element maps to one ormore protectable objects, such as protectable objects 801-863 (FIG. 8).Each protectable object is of a protectable object type and eachprotectable object is within a single data source. Additionally, eachdata source is within a single server of a production location.

Referring once again to the example of a user selecting the NamespaceElement \\ABCD\PUBLIC 405 (FIG. 4) and continuing with the mapping ofthat Namespace Element to the protectable objects, as described withrespect to FIGS. 5 and 7, the mapping of those protectable objects andthe association into a protected group will be described with respect toFIGS. 9A-9B, in accordance with an embodiment of the present invention.

From the user's perspective, a protected group's members are defined byNamespace Elements that the user has selected and added to the protectedgroup, as well as protectable objects added as a result of autodiscovery groups (described below). Additionally, the data protectionsystem will allow a user to see which protected objects each NamespaceElement in a protected group maps to and the state of each of thoseprotected objects.

Referring back to the previous example, the Namespace Element\\ABCD\PUBLIC 405 maps to three different protectable objects: D:\folderon server1 507, D:\folder on server2 509, and F:\on server3 511.Following through with the mapping described with respect to FIG. 7, andreferring to FIG. 9A, D:\folder on server1 507 refers to folder 909contained within data source D:\907 on server1 901. D:\folder on server2509 refers to folder 927 contained on data source D:\935 on server2 903.Finally, F:\on server3 511 refers to data source F:\951 on server3 905.Referring to FIG. 9B, selection of Namespace Element \\ABCD\PUBLIC 505maps to the protected objects described with respect to FIG. 9A andthose objects are associated with a protected group 930. As discussedabove, protectable objects that are contained in a selected protectedobject may be automatically included in the protected group. Forexample, selection of \\ABCD\PUBLIC 505 which maps to, in part, F:\951on server3 905 would include the additional protectable objects 953 and955, as they are contained within protected object F:\951 on server3905. As illustrated in FIG. 9B, a protected group 930 may containprotected objects located on different servers, such as server1 901,server2 903, and server3 905.

FIG. 10 illustrates a block diagram of a protected group containing theselected Namespace Elements, the mapped protected objects, and theprotected group's properties, in accordance with an embodiment of thepresent invention. In particular, protected group 1030 contains theNamespace Element \\ABCD\PUBLIC 1005, each of the mapped, protectedobjects described with respect to the previous example, and theprotected objects contained within the selected protected objects. Inparticular, protected group 1030 includes the protected objects ofD:\folder on server1 1009, D:\folder on server2 1027. Additionally,protected group 1030 includes the protected object F:\on server3 1051,and the two protected objects 1053, 1055 contained within protectedobject F:\on server3 1051.

Each protected group, such as protected group 1030, includes a groupplan 1040 that may include a schedule 1041, space allocation rules 1043,etc. The group plan includes the jobs and other information forprotecting the group. Protected groups collect protected objects foroperational simplicity. All protected objects in the protected groupshare the same group plan generated from the same collection ofprotection intents.

In summary, a protected group includes one or more protected NamespaceElements. Each protected Namespace Element locates one or moreprotectable objects. Protectable objects are, in turn, located on datasources. A data source may be a member of at most one protected group.During protection, the protected group mappings are periodicallyreevaluated to identify newly discovered protectable objects that shouldpotentially be included in the protected group itself and to detectchanges in the logical path to a protected object. This periodicevaluation, described below, is accomplished using auto discoverygroups.

With reference now to FIGS. 11, 12, 13, 16, 23B, 25, 26, 27, 28, 29, 30,31, 32, 33, 34, 35, 36, 38, 39, 41, 48A, 48B, 48C, 49A, 49B, 49C, 52,53, 54, 55, 56, 57, 58, and 59, different routines implemented byembodiments of the present invention will be described. One skilled inthe relevant art will appreciate that the routines may be implemented ona single computing device, such as a server, or distributed to a numberof computing devices. FIGS. 11, 12, 13, 16, 23B, 25, 26, 27, 28, 29, 30,31, 32, 33, 34, 35, 36, 38, 39, 41, 48A, 48B, 48C, 49A, 49B, 49C, 52,53, 54, 55, 56, 57, 58, and 59 illustrate blocks for performing specificfunctions. In alternative embodiments, more or fewer blocks may be used.In an embodiment of the present invention, a block may represent asoftware program, a software object, a software function, a softwaresubroutine, a software method, a software instance, a code fragment, ahardware operation, or a user operation, singly or in combination.

FIG. 11 is a flow diagram of a configuration routine for configuring aplan for protecting a protected group, in accordance with an embodimentof the present invention. Configuration routine 1100 begins at block1101 and at block 1103 the routine obtains a selection of NamespaceElements and protection intents from a user interfacing with a userinterface. As will be described below, a user may select multipleNamespace Elements for protection. The provided protection intents areapplied to all of the selected elements. In block 1105 the selectedNamespace Elements are mapped to the appropriate protectable objects.

At decision block 1107, it is determined whether additional NamespaceElements have been selected to be included with the previously selectedNamespace Elements. If it is determined at decision block 1107 thatadditional Namespace Elements have been selected, the routine returns toobtaining the selected Namespace Elements at block 1103. However, if itis determined at decision block 1107 that there are no additionalNamespace Elements, at block 1109 the data protector generates aprotected group for the selected Namespace Elements which will be usedfor protecting the associated protectable objects that were mapped atblock 1105. The protectable objects added to the protected group becomeprotected objects.

At block 1111, a group plan for protection is generated based on theprotection intents provided by a user at block 1103. A group plan forprotection may include a frequency of protection and the type ofprotection desired. Examples of protection types include, but are notlimited to “background protection,” “backup protection,” and archiveprotection. Background protection refers to a protection type whereprotection is nearly continuous (e.g., copies are updated every hour, 24hours a day, seven days a week). Backup protection refers to aprotection type where protection is scheduled to occur a particularinstances in time (e.g., once a night, every night). The group plan isapplied to all protected objects of the protected group. Generation of agroup plan is described in detail below and referred to as “intenttranslation” (FIGS. 31-34).

At block 1113, the production location containing the protected objectsand the storage location where the copy of the objects will be stored isprepared for protection. For example, the data protector makes aninitial copy of the data that is stored at the storage location andvalidated for accuracy. After protection has proceeded, as illustratedby block 1115, and the protected objects associated with the selectedNamespace Elements have been copied and stored the routine ends at block1117.

FIG. 12 illustrates a protected group creation routine that describes inmore detail the creation of a protected group referred to at block 1109(FIG. 11), according to an embodiment of the present invention. Theprotected group creation routine 1200 begins at block 1201, and at block1203 a selection of Namespace Elements for which protection is to beperformed is received. Additionally, the protection intents for theselected Namespace Elements are also received. At decision block 1205 itis determined whether the received Namespace Elements are to be added toa new protected group or whether they are to be included within anexisting protected group. If it is determined that the NamespaceElements are not to be added to a new protected group, at block 1207 aselection of the existing protected group to which the NamespaceElements are to be included is obtained.

At block 1209 overlap of data sources associated with the NamespaceElements is resolved, as described in more detail below (FIG. 13).Finally, at block 1211 the existing protected group is updated toinclude the additional Namespace Elements and the associated protectableobjects. Additionally, a user may have the option of changing the groupplan for the protected group.

Referring back to decision block 1205, if it is determined that thereceived Namespace Elements are to be added to a new protected group, atblock 1213 any overlap of the data sources associated with thoseNamespace Elements is resolved. At block 1215 a name for the newprotected group is received. In one example, the name of the newprotected group may be provided by a user through the user interface.Alternatively, the name for the protected group may be generatedautomatically by the data protection system itself. At block 1217 agroup plan is created for the protected group dependent upon theprotection intents provided previously to the data protection system. Atblock 1219 the routine of creating a protected group completes.

FIG. 13 illustrates an overlap detection routine, corresponding toblocks 1209 and 1213 (FIG. 12), for detecting overlap of data sourcescontained in two or more protected groups, in accordance with anembodiment of the present invention. The overlap detection routine 1300begins at block 1301 and at decision block 1303 it is determined if thecontaining data source of any protectable objects associated with theselected Namespace Element is currently contained in another protectedgroup (existing protected group). If it is determined that there are nodata sources containing the protectable objects associated with theselected Namespace Element contained in an existing protected group, theroutine ends at block 1313 and returns control to the appropriateroutine, such as the protected group creation routine 1200 (FIG. 12).

However, if it is determined that a containing data source of aprotectable object associated with the selected Namespace Element iscontained in an existing protected group (i.e., overlap), at decisionblocks 1305-1307 a determination is made as to how the detected overlapis to be resolved. In an actual embodiment of the present invention,resolution of overlap is dependent upon a user's determination. Forexample, if an overlap is detected, a user may be provided with theoption of excluding the protectable object of the overlapping datasource (“conflicted protectable object”) from the current protectedgroup (1305), or removing the data source containing conflictedprotectable object causing the overlap from the existing protected groupand adding it to the current protected group (1307). In an alternativeembodiment, a global policy may be provided by a user for resolvingoverlaps that is used for progressing through the overlap detectionroutine 1300. In yet another embodiment, attempts to add a protectableobject to a protected group that will cause overlap will result in afailure.

At decision block 1305 a determination is made as to whether theconflicted protectable object is to be excluded from the protected groupto which it is presently being added (current protected group). If it isdetermined at decision block 1305 that the conflicted protectable objectis to be excluded from the current protected group, that protectableobject is removed from the current protected group but remains in theexisting protected group which caused the conflict, and the overlapdetection routine returns control to the initiating routine, asillustrated by block 1313.

If it is determined at decision block 1305 that the conflictedprotectable object is not to be excluded from the current protectedgroup, the routine determines at decision block 1307 whether to removethe protectable object's data source and all protected objects containedwithin that data source from the existing protected group and add theremoved data source, the removed protected objects, and the conflictedprotectable object to the current protected group. If the data sourceand contained protected objects are removed from the existing protectedgroup and added to the current protected group, the routine completes atblock 1313 returning control to the appropriate routine from which itcame.

If it is determined at decision block 1307 that the conflictedprotectable object's data source and all contained protected objects arenot to be removed from the existing protected group and added to thecurrent protected group, the overlap protection routine 1300 generatesan overlap failure, as illustrated by block 1311 and completes at block1313.

Similar to a user being able to protect physical objects (protectableobjects) stored on a production location by selecting Namespace Elementsrepresentative of those protectable objects, a user may also recoverphysical objects (recoverable objects) by selection of NamespaceElements representative of the physical objects to be recovered. FIG. 14is a flow diagram of a data protection system illustrating the flow of arecovery process for recovering a protected object, in accordance withan embodiment of the present invention. To recover objects, a userselects one or more Namespace Elements representative of protectedobjects that are to be recovered. The data protector 1401, in responseto receiving a selection of a Namespace Element, then queries thestorage location 1403 to identify the temporal versions of recoverableobjects associated with the selected Namespace Elements provided by theuser. In an alternative embodiment, it may not be necessary to query thestorage location 1403 to identify the temporal versions. For example,for recovery from archive the data protector 1401 may identify thetemporal versions by searching a catalog or database that containsinformation identifying the temporal versions that are available. Theidentified temporal versions are synthesized and provided to a user as arepresentation of points in time to which data may be restored.

A user selects a point in time to recover to and provides recoveryintents for that point in time. Examples of recovery intents arediscussed in more detail below. Upon receipt from a user as to what isto be recovered and the corresponding recovery intents, a recovery planis created and executed by the data protector 1401 and the appropriaterecoverable objects located on storage location 1403 are recovered andtransmitted to the production location 1405.

FIG. 15 is a block diagram illustrating a more detailed view ofrecoverable objects that may be contained on a storage location 1403,according to an embodiment of the present invention. In general,recovery takes a damaged or missing protected object (or portionsthereof) back to a previous temporal version. Temporal versioning may bediscrete or nearly continuous. Discrete temporal versions arise frompersisting point-in-time full copies of protected objects. Recovery of adiscrete temporal version may require only restoration of the protectedobject or may require additional recovery processing after restoration.Nearly continuous temporal versions arise from persisting point-in-timecopies of a log associated with the protected object. The recoveryoccurs by a roll forward application of the log. In an embodiment of thepresent invention, the roll forward may be stopped at any point in timecontained within the log.

Recoverable objects, as described herein, represent the possibilitiesfor recovery of a protected object. Each recoverable object can begenerated from one or more recovery sources. A recovery source may belocated on a temporal version associated with a replica, within areplica, on an archive tape, or an archived copy on a disk.

Referring now to FIG. 15, a protected object 1509 may contain one ormore recoverable objects 1511, 1513, 1515, 1517, 1519, 1521. In general,recoverable objects may be finer grained than protected objects. Forexample, a protected object may be a folder, such as D:\folder onserver1 1509. That protected object 1509 may contain multiplerecoverable objects. For example, the protected object D:\folder onserver1 1509 may contain six recoverable objects, including file1 1511,file2 1513, file3 1515, file4 1517, file5 1519, and file6 1521.Additionally, the protected object 1509 is also a recoverable object.

The original choice of a protected object and protection method oftendetermines the available recoverable objects and/or the work requiredfor recovery. For example, if the protected object is an ExchangeStorage Group containing databases that contain mailboxes, all databaseswithin that storage group may be implicitly protected. Either the fullstorage group or one or more of the databases may be recovered and arethus recoverable objects. If the protection is performed by archive only(described below) and no replication, mailbox recovery is likely verytime consuming (expensive). If the protection is performed byreplication as well as archive, mailbox recovery from the replica may besubstantially faster (cheaper).

If the protected object is a database of a storage group, the storagegroup may not be entirely protected but mailboxes contained within theselected database are protected. However, if the protected object is amailbox, there may not be implicit protection of the associated databaseor the storage group. If protection is performed by archive only and noreplication, the archive is unlikely to be able to restore anythingother than the selected mailbox. Alternatively, if the mailbox is knownto be part of a database that is replicated as part of a differentprotected group, mailbox recovery could occur from the replica of theother protected group and not the archive media

FIG. 16 illustrates a recovery routine for recovering protected objectsfrom a storage location, in accordance with an embodiment of the presentinvention. The recovery routine 1600 begins at block 1601 and at block1603 a selection of Namespace Elements to recover is received from auser interfacing with the Namespace Elements displayed on a userinterface. A user may also provide recovery intents for the data that isto be recovered. At block 1605 a selection of a particular point-in-timeversion for which data is to be recovered is received. In an embodimentof the present invention, a user provides a point-in-time for whichrecovery is to occur. In another embodiment, temporal versions may beidentified for the selected namespace elements and provided to a userfor selection.

At block 1607 it is determined whether additional elements have beenselected for recovery. If it is determined that additional elements havebeen selected for recovery, the routine returns to block 1603 andreceives a selection of those additional Namespace Elements to recover.However, if it is determined that there are no additional elements torecover, at block 1609 the recoverable objects are mapped to theappropriate recovery sources located on a storage location utilizing themapping schema discussed above and the received recovery intents.

Upon identification of the necessary recovery sources, a recovery planis created at block 1611. The recovery plan includes the process forsynthesizing the required point-in-time versions of recoverable objectsfrom the appropriate recovery sources. At block 1613 the plan isexecuted and the identified recoverable objects are recovered. At block1615 the recovery routine ends.

As mentioned above, in addition to creating protected groups, the dataprotection system also generates auto discovery groups and savedsearches. Auto discovery groups and saved searches provide an automatedmeans to inform a user of changes to a production location. For example,changes may include addition or deletion of computing devices, such asservers, Exchange Storage Groups, databases, volumes, and shares, aswell as changes in the mappings between Namespace Elements andprotectable objects. Providing a user with notification of productionlocation changes enables a user to take appropriate action to protectnew data that needs to be protected and adjust their protectionstrategies when data has been relocated or removed.

Auto discovery groups are a mechanism for describing what should beprotected as a query rather than as a discrete set of physicalresources. For example, suppose an organization names all file serversas \\FILESRV*, such as \\FILESRV1, \\FILESRV2, etc. A user for thatorganization can create an auto discovery group that periodicallysearches for all shares on any server named \\FILESRV*. The autodiscovery group will find all such shares and allow the user to eitherselect or reject protection of any protectable object located orassociated with those shares. Additionally, in an embodiment of thepresent invention, the auto discovery group may be reevaluatedperiodically and the user notified of any new shares and given theopportunity to either approve or reject protection of those new shares.Still further, reevaluation identifies any existing shares that havebeen removed and provides a user with a notification of the removal.

Auto discovery groups may also be used by the data protector to trackthe mapping between Namespace Elements and protectable objects.Referring again to the above example, suppose a user protected the path\\ABCD\PUBLIC. The data protection system automatically generates anauto discovery group containing the name \\ABCD\PUBLIC and a mapping toits protected objects such as D:\folder on server1, D:\folder onserver2, and F:\folder on server31. If, in the future, \\ABCD\PUBLIC ischanged to refer to different folders, either on the same server ordifferent server, then the user would be informed by the data protectorof the change and given the opportunity to adjust the protection.

FIGS. 17-24 illustrate a flow diagram for creating and utilizing an autodiscovery group, in accordance with an embodiment of the presentinvention. For purposes of explanation for FIGS. 17-24, we will assumethat a data protection system has just been installed at a workplacecontaining several servers (illustrated as the production location 1703)for which protection is desired.

Upon initialization of the data protection system 1700, the dataprotector 1701 queries the production location 1703 to identifyNamespaces and Namespace Elements representative of protectable objectsthat are contained within the production location. The data protector1701 publishes the Namespaces and Namespace Elements to a user via auser interface 1705 in the form of a hierarchical view of Namespaces andcontained Namespace Elements for interaction and selection by the user.

A user, interacting with the user interface 1705, may select one or moreNamespace Elements for protection, such as \\ABCD\PUBLIC NamespaceElement 1707. In addition to selecting Namespace Elements forprotection, a user provides protection intents identifying how the userwants to have the associated protectable objects protected. SelectedNamespace Elements and an indication of protection intents are returnedto the data protector 1701.

Referring now to FIG. 18, the data protector 1701 maps the selection ofNamespace Elements to the protectable objects located on the productionlocation 1703. For example, upon selection of Namespace Element\\ABCD\PUBLIC 1707, the data protector maps that Namespace Element tothe protectable objects, utilizing the Namespace schema, as describedabove. That mapping identifies that the Namespace Element \\ABCD\PUBLIC1707 maps to protectable object D:\folder on server1 1709 andprotectable object D:\folder on server2 1711. In an alternativeembodiment, during initial discovery of Namespace Elements the elementsmay be mapped to corresponding protectable objects at that time.

The data protector 1701 creates a protected group that contains theselected Namespace Elements, an identification of the protectableobjects, which become protected objects, an auto discovery group 1713,and an auto discovery group table 1715. As discussed, based on theintents provided by the user, the protected group also includes a groupplan that describes how the protected group is to actually be protected.The auto discovery group 1713 includes a Namespace search parameter,such as \\ABCD\PUBLIC\* and the current mapping of that NamespaceElement to the protected objects D:\folder on server1 and D:\folder onserver2. Creating an auto discovery group 1713 that contains a Namespacesearch parameter for a selected Namespace Element provides the dataprotector with the ability to subsequently search for additions,deletions, and remappings to the production location that match theNamespace search parameter. Any such changes are reported to a user, viaan alert, as they may be of interest for protection. Alerts may beprovided to the user in a variety of forms. For example, the alert maybe provided via the user interface, e-mail, page, voice message, etc.

In addition to creating an auto discovery group 1713, the data protector1701 creates an auto discovery group table 1715 that includes anidentification of the current mapping to protected objects, andinformation concerning those protected objects. In particular, theinformation includes whether the mapping to the protected object matchesthe auto discovery group parameters contained in the auto discoverygroup 1713 as indicated by match column 1717, whether the protectedobject is currently pending user action, as indicated by pending column1719, whether the mapped protected object is current1 protected underthe group plan as indicated by protected in plan (“PP”) column 1721, andwhether the mapped protected object is currently protected by the user,as indicated by the protected by user (“PU”) column 1731. As discussedbelow, an object may be protected by a user but not yet protected by thedata protection system. For example, a user may indicate that they wantto protect a particular object, thereby making that object protected bythe user, however, the object may not become protected by the plan untilafter intent translation has completed for that protected object.

After creation of the protected group, the auto discovery group, thegroup plan, and the auto discovery group table, the data protectionsystem, in accordance with an embodiment of the present invention,prepares the production location and storage location for protection.After the locations have been prepared for protection (e.g., resourcesplan), initial steps are performed for creating an initial copy of theselected protectable objects (preparation plan), and then protectionbegins (protection plan).

At some predetermined times after the selected protected objects areprotected, the data protection system runs the auto discovery group andremaps the production location 1703. For example, the auto discoverygroup may be scheduled to run once per night. Running the auto discoverygroup at night or at some time when activity at the production locationis low, reduces the amount of load that is placed on the productionlocation.

Returning to the example described with respect to FIGS. 17-24, forexplanation purposes, the auto discovery group is run and the autodiscovery group results 1723 (FIG. 19) identify that the onlyprotectable object matching the auto discovery group search parametersof \\ABCD\PUBLIC\* is the protectable object of D:\folder on server2.The data protector 1701 compares the auto discovery group results 1723with the auto discovery group table 1715. In this example, it identifiesthat the protected object of D:\folder on server1 no longer matches theauto discovery group search parameters. D:\folder on server1 may nolonger match the search parameters for a variety of reasons. Forexample, D:\folder on server1 may no longer exist, or D:\folder onserver1 is no longer mapped under \\ABCD\PUBLIC.

After comparison, the table 1715 is updated to indicate that theprotected object of D:\folder on server1 was not returned in the resultsand therefore no longer matches the auto discovery group searchparameters, as illustrated by the “N” in the match column 1717.Additionally, the auto discovery group table 1715 is updated for theprotected object of D:\folder on server1 to indicate that userinteraction is currently pending for that protected object, asillustrated by the “Y” in column 1719. User interaction is currentlypending because the protected object no longer matches the autodiscovery group parameters. D:\folder on server1 remains marked asprotected under the plan and protected by the user, as illustrated bythe Y in the PP column 1721 and the PU column 1731.

The auto discovery group table 1715 is also updated to indicate thatD:\folder on server2 matches the auto discovery group search parametersand remains protected in the plan and by the user, as illustrated by the“Y” in columns 1721 and 1731, respectively. Finally, there is anindication that no user action is pending for the protected objectD:\folder on server2 because it does match and it is protected, asillustrated by the “N” in the pending column 1719.

Referring now to FIG. 20, the following morning after the auto discoverygroup has run, the auto discovery group table has been updated and analert generated, a user accesses the data protection system and isprovided with a notification from the data protection system that theprotected object of D:\folder on server1 no longer matches the autodiscovery group search parameters.

In response, the data protection system receives an indication from theuser to remove the protected object from the protected group. The dataprotector 1701 updates the auto discovery group thereby removing themapping of D:\folder on server1 from the protected group and updates theauto discovery group table 1715. In particular, D:\folder on server1 ismarked as no longer protected by the user, as illustrated by the “N” inPU column 1731 and marked as no longer pending, as illustrated by the“N” in column 1719. At this point, D:\folder on server1 remainsprotected by the plan as intent translation has not yet been rerun toremove D:\folder on server1 from the protected group.

The object is maintained in the auto discovery table 1715 and marked asnot protected by user so that if it is identified by a subsequentexecution of the auto discovery routine it will not be presented to theuser as pending approval, as it has already been excluded fromprotection. Now that the object is no longer protected by the user itbecomes a protectable object.

FIG. 21 continues with the previous example, and at some point in timeafter the user has indicated that they no longer want to protectD:\folder on server1 intent translation is executed. Upon execution ofintent translation, the group plan is updated and D:\folder on server1is removed from the protected group. Even though D:\folder on server1 isno longer protected by the protected group, the existing temporalversions of the protected group remain stored at the storage locationand may be utilized to recover D:\folder on server1 up to the point atwhich it is no longer protected by the plan. Upon completion of intenttranslation, the auto discovery group table 1715 is updated. Inparticular, D:\folder on server1 is marked as not protected by plan, asillustrated by the “N” in the PP column 1721.

At some point in time after intent translation has completed, the autodiscovery group again executes, queries the production location 1703 andremaps the auto discovery group search parameters to the objects locatedon the production location 1703. Upon completion of the mapping of theauto discovery group search parameters, the auto discovery group results1725 are provided and include an indication that the search parametersmap to the protected object of D:\folder on server2 and a new protectedobject of E:\folder on server2 1727. Again, the data protector 1701compares the results with the auto discovery group table 1715. Thatcomparison indicates that the protected object of D:\folder on server2again matches the auto discovery group search parameters, is not pendinguser action, and remains protected by both the user and the group plan.In addition, the new protectable object of E:\folder on server2 matchesthe auto discovery group search parameters, is not currently protectedby the group plan, as illustrated by the “N” in the PP column 1721, iscurrently not protected by the user, as illustrated by the “N” in the PUcolumn 1731, and is currently pending user action, as illustrated by the“Y” in the pending column 1719. Upon completion of the comparison, theauto discovery group table 1715 is updated to identify the new mappingand the status of all objects.

The protectable object of E:\folder on server2 is currently notprotected by the plan or by the user because it was newly identified bythe auto discovery group. The data protection system 1701 generates analert that is provided to the user to indicate that a new protectableobject has been added to the production location that is similar to theprotected objects in the protected group. The alert is generated becausethe user may be interested in additionally protecting, as part of theprotected group, this newly identified protectable object.

In FIG. 22, the user has received the alert and provides a response tobegin protection of the newly identified protectable object that wasautomatically identified by the auto discovery group. The protectableobject of E:\folder on server2 is also added to the protected group andthus becomes a protected object. Likewise, the data protector 1701 addsto the auto discovery group table 1715, an indication that the object ofE:\folder on server2 is no longer pending user action, is protected bythe user, but at this point is not protected by the plan.

FIG. 23A continues with the above example, and at some time after anindication by the user to add the newly identified protectable object tothe protected group, intent translation executes and E:\folder onserver2 becomes protected by the plan. Upon completion of intenttranslation, the auto discovery group log 1715 is updated to indicatethat E:\folder on server2 is now protected by the plan, as illustratedby the “Y” in PP column 1721.

At some time after intent translation has completed, the data protector1701 again runs the auto discovery group routine and remaps the autodiscovery group search parameter of \\ABCD\PUBLIC\* onto the objectslocated at the production location 1703. Upon completion of the autodiscovery group routine, the data protector has identified the mappingsof D:\folder on server2 and E:\folder on server3 1729. Those results areused to compare and update the auto discovery group table 1715 toindicate that the protected object of D:\folder on server2 again matchesthe auto discovery group search parameters, is not pending user action,remains protected by the data protection system, and remains protectedby the user. Additionally, it is indicated that the previously protectedobject of E:\folder on server2 was not identified by the auto discoveryroutine but remains protected by the user and the protection plan, andis therefore pending user action. Finally, the addition of the newprotectable object of E:\folder on server3 is identified as matching theauto discovery group search parameters, however, it is not currentlyprotected by the user or the protection plan, as it is newly identified,and is therefore pending user action. Upon update of the auto discoverytable the data protector 1701 generates an alert including theidentification that the previously protected object of E:\folder onserver2 no longer matches the auto discovery group search parameters,and that E:\folder on server3 has been added to the production locationand matches the auto discovery group search parameters. This alert mayindicate to a user that the protected object E:\folder on server2 mayhave been moved to E:\folder on server3. Without automatic discovery ofsuch a change, the user may have continued to protect the old object andnot have provided protection for the new object.

FIG. 23B illustrates a remap resolution routine for resolving the remapof a protected namespace element, such as that detected in FIG. 23A, inaccordance with an embodiment of the present invention. The remapresolution routine 2300 runs when it is determined that a NamespaceElement may have been moved. For example, \\ABCD\PUBLIC\LINK3, which waspreviously mapped to E:\folder on Server2 may have been remapped toE:\folder on Server3.

The remap resolution routine 2300 begins at block 2301. At block 2303 anauto-discovery group is evaluated, and it is determined that a protectednamespace element has been remapped from one protectable object toanother. At decision blocks 2305-2309 a determination is made as to howthe remap is to be resolved.

In particular, at decision block 2305 a determination is made as towhether the new mapping should be exclusively protected. If it isdetermined that the new mapping should be exclusively protected, atblock 2311 the old mapping is marked as not protected by user, and thenew mapping is marked as protected by user. However, if it is determinedthat the new mapping should not be exclusively protected, at decisionblock 2307 a determination is made as to whether the old mapping shouldexclusively be protected. If the old mapping is to be exclusivelyprotected, at block 2311 the old mapping is marked as protected by user,and the new mapping is marked as not protected. However, if it isdetermined at decision block 2307 that the old mapping should not beexclusively protected, at decision block 2309 it is determined whetherthe both mapping should be protected.

If it is determined at decision block 2309 that both mappings should beprotected, at block 2311 both mappings are marked as protected by user.However, if it is determined that both mappings are not to be protected,at block 2311 both mappings are marked as not protected by user.

At block 2313 the intent translation routine, as discussed herein, isexecuted. Upon completion of intent translation, the protected objectsare updated such that the protected in plan flag contains the same valueas the protected by user flag for both the old protected object and thenew. At block 2315, the routine ends.

FIG. 24 illustrates that, as with the previous portions of this example,the user is provided with the alert identifying the changes detected bythe previously run auto discovery group routine. The user selects toupdate the mapping of the auto discovery group search parameters toinclude the newly identified protectable object of E:\folder on server3and to remove the mapping of the older protected object of E:\folder onserver2 (block 2305, FIG. 23B). The data protection system 1701, inresponse to receiving the indication from the user to update themapping, updates the protected group to include the new protectedobject. Additionally, the data protector 1701 updates the auto discoverygroup table 1715 to identify that E:\folder on server2 is no longerprotected by the user, but at this point remains protected by the planand to indicate that the new mapping of the protected object ofE:\folder on server3 is protected by the user but not yet protected bythe plan.

At some time after the user has indicated the changes, intenttranslation is executed thereby removing E:\folder on server2 from beingprotected by the group plan and adding E:\folder on server3 to beprotected by the group plan. As will be appreciated, intent translationmay be executed at any point in time subsequent to a user indicating achange in the protected group (either addition of an object or removalof an object). For example, intent translation may be executedimmediately after a user has indicated a change to the protected group,or several days later. Additionally, the auto discovery group routineand intent translation may be independent of one another. The autodiscovery group routine may be performed multiple times between a userindicating a change to the protected group and intent translationexecuting. In such an instance, upon a refresh of the auto discoverygroup, no alert will be generated for the object being changed as theuser has already provided instructions even though an actual change tothe group plan has not yet occurred.

FIG. 25 illustrates a flow diagram of an initial discovery routine forinitially discovering the mappings between top-level Namespace Elementsand protectable objects, in accordance with an embodiment of the presentinvention. The initial discovery routine 2500 begins at block 2501 andat block 2503 the Namespaces and Namespace Elements of all easilydiscoverable objects of a production location are identified. Easilydiscoverable objects are top level objects of a production location. Forexample, Namespaces and Namespace Elements may be easily discovered fortop level objects such as DFS roots, servers, Exchange servers, and STSservers. At block 2505 the discovered top-level Namespaces and NamespaceElements of the production location are persisted in memory (e.g., adatabase) of the data protector. At block 2507 the initial discoveryroutine 2500 completes.

FIG. 26 illustrates a flow diagram of a scheduled discovery routine fordiscovery of mappings between Namespaces and Namespace Elements andprotectable objects located at a production location, in accordance withan embodiment of the present invention. In particular, the scheduleddiscovery routine 2600 begins at block 2601 and at block 2603 theinitial discovery routine 2500 (FIG. 25) executes and top-levelNamespace Elements of the production location are identified. Asdiscussed above, the stored copy of the top-level Namespace Elements maybe utilized by the data protection system to allow a user to navigatethrough a production location and/or to search for particular portionsof a production location without having to rediscover the productionlocation at the time of the search, thereby increasing search andnavigation time and removing load off of the production location.

At decision block 2605 it is determined if there are any existing savedsearches (discussed below) that are to be performed. If it is determinedat decision block 2605 that there are saved searches to be performed, atblock 2607 those saved searches are executed. However, if it isdetermined at decision block 2605 that there are no existing savedsearches, at decision block 2609 it is determined if there are anyexisting auto discovery groups that are to be updated. If it isdetermined at decision block 2609 that there are existing auto discoverygroups to be updated, at block 2611 those auto discovery groups areupdated, as described previously with respect to the example in FIGS.17-24. The routine completes at block 2617.

FIG. 27 is a flow diagram of an auto discovery group creation routine,in accordance with an embodiment of the present invention. The autodiscovery group creation routine 2700 begins at block 2701 and at block2703 a selection of Namespace Elements that a user wants to protect isreceived. In addition to receiving a selection of Namespace Elements,the protectable objects associated with those Namespace Elements arealso received. At block 2705 any overlap of the data sources associatedwith those Namespace Elements is resolved. Overlap resolution isdiscussed above with respect to FIG. 13.

After any overlap has been resolved, at block 2707 an auto discoverygroup list identifying the selected Namespace Elements is created.Additionally, a query parameter is generated and included in the autodiscovery group that is used to identify other Namespace Elements thatare similar to the selected Namespace Elements. A query parameter may beexpressed in terms of physical resources (e.g., all volumes on server1),some query on a Namespace (e.g., all shares under the DFSROOT\products), or some combination (e.g., all shares on servers named\\FILESRV*). Additionally, a query parameter may be based on someproperty of preexisting Namespace Elements.

In each case, the data protection system keeps track of the membershipof the auto discovery group and notifies users of changes to that group.At block 2709 the auto discovery group and the list of selectedNamespace Elements is added to a protected group. As discussed above,the protected group may be an existing protected group or a newlycreated protected group for the selected Namespace Elements. At block2711 the auto discovery group creation routine ends.

An auto discovery group, created as described above with respect to FIG.27, is a way of describing objects that potentially should be protectedas a query rather than as a discrete set of physical resources. Once achange is detected, a user may either approve or reject changes to theplan for protecting the objects associated with that auto discoverygroup and/or that are part of the protected group. For example, if theauto discovery group includes the search parameter for all shares onservers \\FILESRV* and a new server \\FILESRV10 arrives with ten newshares, the user has an option of approving or rejecting protection ofeach of the new shares.

As discussed above, the data protection system tracks responses to autodiscovery group changes reported to a user. For example, if a userrejected protection of a newly identified protectable object, then nonotification would be subsequently sent to a user if that protectableobject is subsequently removed from the production location. Inparticular, an excluded flag for a protectable object is set once a userhas indicated that they do not want to protect the object and want toautomatically ignore all future notifications. In an embodiment,rejecting an object once does not automatically set the excluded flag.Additionally, the number of times an object is rejected may be trackedand after a predetermined number of rejections (e.g., five) the objectmay be marked excluded. Subsequent identifications of an excluded objectwill not be alerted to the user.

The data protection system automatically creates and configures autodiscovery groups for each Namespace Element that a user wants protected.For example, if a user protects share1 on server \\FILESRV1, the dataprotection system configures an auto discovery group consisting of themapping of \\FILESRV1\share1 to a physical resource (e.g., folder1 onvolume X: on \\FILESRV1). If \\FILESRV1\share1 disappears or the mappingfrom the share to the physical resource is changed, the user is notifiedof the change and given several options as to how to proceed (FIG. 23B).For example, suppose \\FILESRV1\share1 now maps to folder1 on volume Y.The user has the options of continuing to protect X:\folder1, to stopprotecting X:\folder1 and start protecting Y:\folder1, or to protectboth objects. In this way the user is informed of any changes to theNamespace Element that it is trying to protect and the physical objectsthat are actually being protected.

FIGS. 28 and 29 illustrate a flow diagram of an auto discovery groupupdate routine, in accordance with an embodiment of the presentinvention. The auto discovery group update routine 2800 begins at block2801 and at block 2803 a protectable object from the auto discoverygroup results is selected. The auto discovery group results aregenerated after execution of an auto discovery group mapping sequenceidentifying each of the protectable objects to which the NamespaceElements of that auto discovery group map, or previously mapped. Atdecision block 2805, it is determined whether the selected protectableobject is currently protected by the user.

If it is determined at decision block 2805 that the selected protectableobject is currently not being protected by the user, at decision block2807 a determination is made as to whether the selected protectableobject is currently awaiting approval from a user. A protectable objectmay be currently awaiting approval from a user to be added to aprotected group if it had been previously identified and reported to auser, via an alert, and the user had not identified whether that objectshould be added to the protected group. As discussed with respect toFIGS. 17-24, an object may be identified as awaiting approval by settingthe pending column to “Y” in the auto discovery group table. If it isdetermined at decision block 2807 that the protectable object is notawaiting approval, at decision block 2809 it is determined whether theselected protectable object has been excluded from protection. Asdiscussed above, a protectable object may be excluded from protection byidentification from a user that it does not want to have the protectableobject protected nor be notified of changes to the protectable object.Such an identification is identified by marking that object within theauto discovery group table as excluded by the user.

If at decision block 2809 it is determined that the selected protectableobject is not currently excluded from protection, at block 2811 an alertis generated that identifies the new protectable object and requeststhat the user approve addition of the protectable object to theprotected group and/or a response to specifically exclude theprotectable object from the protected group. At block 2813 theprotectable object is marked as pending approval by the user, notprotected by the user, and not protected by the plan.

If it is determined that the selected protectable object is: currentlybeing protected by the user (block 2805); awaiting protection approvalfrom a user (2807); or excluded from protection (2809); at decisionblock 2815 it is determined whether there are additional protectableobjects identified as auto discovery group results. If it is determinedat decision block 2815 that there are additional protectable objects,the routine returns to block 2803 and continues the process for eachadditional protectable object identified as an auto discovery groupresult. However, if it is determined at decision block 2815 that thereare no additional protectable objects identified as auto discovery groupresults, at block 2817 (FIG. 29) an existing protected object of theauto discovery group is identified.

At decision block 2818, a determination is made as to whether theexisting protected object is marked as protected by the user. If it isdetermined that the existing protected object is not marked as protectedby the user, the routine proceeds to decision block 2821. However, if itis determined that the existing protected object is protected by theuser, at decision block 2819 it is determined if the existing protectedobject is included in the results generated by the execution of the autodiscovery group. If it is determined at decision block 2819 that theexisting protected object is included in the newly generated autodiscovery group results, at decision block 2821 a determination is madeas to whether there are additional existing protected objects of theauto discovery group. If it is determined at decision block 2821 thatthere are additional existing protected objects of the auto discoverygroup, the routine returns to block 2817 and continues. If it isdetermined at decision block 2821 that there are no additional existingprotected objects for the auto discovery group, the routine ends atblock 2827.

Referring back to decision block 2819, if it is determined that theidentified existing protected object is not included in the newlygenerated auto discovery group results, at decision block 2822 it isdetermined, by examining the pending flag, whether an alert has beenpreviously sent to the user notifying the user of the change. If it isdetermined that an alert has not been previously sent, the change isreported to the user, via an alert, identifying that the mapping to anobject protected by the user no longer exists, as illustrated by block2823. At block 2825 that protected object is marked as pending removalfrom the protected group, not matching the auto discovery group searchparameters, but currently protected by the user. Removal of a protectedobject from a protected group does not remove any actual copy of thatprotected object from the storage location. As will be appreciated byone skilled in the relevant art, pending removal and pending approvalmay be tracked as a single status of pending. As discussed above,tracking whether the object matches the auto discovery group searchparameter identifies whether object is to be removed or added.

As objects are identified by the auto discovery routine, in addition totracking whether the objects are pending user action, protected by theplan, protected by the user, and matching the auto discovery searchparameters, when an object is first identified and added to the autodiscovery group table, the date and time it is identified are alsorecorded. Additionally, when a protected object that exists in the autodiscovery group table is no longer identified by an auto discovery grouproutine, the date and time it disappears are also recorded.

In addition to the data protection system automatically creating autodiscovery groups in response to a user selecting Namespace Elements, thedata protection system also automatically creates saved searches. Inanother embodiment, saved searches may be generated upon installation ofthe data protection system. In still another embodiment, saved searchesmay also be created by a user.

A saved search is used to inform a user when segments of a productionlocation, such as a server, appear or disappear. For example, utilizingsaved searches provides the ability for the data protection system toinform a user of new servers, new DFS roots, servers that no longerexist, DFS roots that no longer exist, new STS servers, STS servers thatno longer exist, etc. Associated with each saved search is a list ofNamespace Elements that have been located during a previous evaluationof the same saved search. Saved searches include a Namespace Elementthat represents a starting point for search, and a set of searchcriteria that describe the contained Namespace Elements to be returned.Unlike auto discovery groups, saved searches operate on NamespaceElements rather than protectable objects. For example, a saved searchmay be created to identify all servers belonging to the marketingdepartment of a corporation. This would generally not be a valid autodiscovery group. However, like auto discovery groups, saved searchesmaintain a saved search results table identifying Namespace Elementsmatching the search parameters.

For Namespace Elements matching a search, the status is maintained. Forexample, first identified and last seen time information is maintainedfor each Namespace Element. That information may also be used to detectchanges. The first time a Namespace Element is identified by a savedsearch, a timestamp identifying the date of that identification ispersisted, and when that Namespace Element is removed from theproduction location, a timestamp identifying the data and time that theNamespace Element was last seen is also persisted. In an actualembodiment, an alert is provided to a user whenever a change in theproduction location is detected. For example, addition of a NamespaceElement and/or removal of a Namespace Element to the production locationwould generate an alert to the user identifying it of that change. In anembodiment, a saved search for all shares on a server is created inresponse to a user identifying that a share on that sever is to beprotected. Similarly, a saved search for all volumes on a server iscreated when a volume on that server is protected. Upon a change to theserver (e.g., the addition of a share or volume, as appropriate) a userwill be notified of the change.

The results of auto-discovery groups and saved searches may also be usedto improve the performance of the data protector's navigation andsearching functions. Auto-discovery groups and saved searches may cachetheir results in persistent storage on a periodic basis, so in caseswhere navigation and search results do not change frequently, or wheresome staleness is acceptable, the data protector may utilize thesecached results to provide faster responsiveness to user-initiatednavigation and search.

Protection intents are provided by a user to describe how (e.g.,replica, archive, both) they want to protect a protected group and howfar back in time they want to be able to recover (duration). Forexample, the user may want to have a replica of a selected group of datagenerated for that data every night, a copy stored on removable media atthe storage location, that copy updated once a week, and a maximum offour copies kept on removable media. Additionally, the user may specifythat they want to be able to recover the information that is at leastone month old.

Protecting data at a storage location, for example, as a replica, anarchive, or both, requires that resources be allocated for the copies ofthe data, as well as any resources required for the process itself. Inaddition, a number of jobs are required to get those resources into therequired state to be used and ongoing jobs are necessary to maintain theaccuracy of the protection. The use of jobs for protecting data will bedescribed in more detail below. Manually setting up the resources andjobs can be tedious and error prone. In addition, resources and jobs mayneed to be changed whenever a set of objects being protected changes,for example, in response to a change detected by an auto discoverygroup. Rather than requiring a user to manually specify the detailedresources and jobs, the user may simply specify what is to be protectedby selection of Namespace Elements and providing protection intents.That information is then used to generate a group plan for maintainingthe protection of the selected data. In one embodiment, the group planincludes three components: a resource plan, a preparation plan, and aprotection plan.

The resource plan includes a list of jobs that are necessary to obtainthe resources needed to enable protection. The preparation plan includesa list of one-time jobs that are needed to set up the protection of theidentified data. For example, a one-time job would be the initialcopying and transfer of data from the production location to the storagelocation. The protection plan includes a list of ongoing jobs that arerequired to maintain the accuracy and integrity of the protected data.

Translation from the protection intents identified by a user to adetailed plan for protecting objects is referred to and described hereinas “intent translation.” In an actual embodiment of the presentinvention, intent translation operates on a protected group andprotection intents provided for that protected group. Protection intentsare expressed as logical representations and may be stated as goals. Thegoals may identify the level of protection (granularity) desired, howthe data is to be protected, how long the data is to be protected, howoften the data is to be protected, etc. For example, a user may identifythe protection intent of “don't lose more than 30 minutes of anyexecutive file share; retain all content for a year.” Verbs from theprotection intent are used as actions for translating the intents into adetailed plan for protecting the objects. Referring to the previousexample, the corresponding actions for that intent are “replicatevolumes and folders every 30 minutes,” “archive weekly” and “storeoffsite with one year media retention.”

In an embodiment of the present invention, protection templatesidentifying protection intents may be selected by a user and used togenerate a plan for protecting the selected protected group. Aprotection template contains one or more prototype job definitionsincluding appropriate verbs and default properties. The protectiontemplate also includes a default prototype schedule. For example,“hourly replication, three temporal versions created during the day,archive nightly, no encryption for transfer, no encryption at storagelocations” is a default prototype schedule. A user has the ability tooverride and explicitly change the protection template. For example, auser may change the previous protection template to create hourlyreplications, only one temporal version during the day, archive weekly,with no encryption for transfer, no encryption at storage locations. “Noencryption for transfer,” as identified in the mentioned defaultprototype schedule, identifies that data does not need to be encryptedwhen transmitted from the production location to the storage location.Alternatively, data may be encrypted for transmission between theproduction location and the storage location. “No encryption at storagelocations” identifies that the data stored at the storage location,either as a replica or archived, does need to be encrypted.Alternatively, stored data may be encrypted. For example, copies of aproduction location that are archived to removable media, such as tape,may be encrypted. Additionally, copies stored as a replica may also, oralternatively, be encrypted. As one who is skilled in the relevant artwill appreciate, any encryption technique may be utilized withembodiments of the present invention for encrypting the data fortransmission and for storage.

FIG. 30 illustrates a flow diagram for translating protection intentsinto a plan for protecting a set of data, in accordance with anembodiment of the present invention. A user interfacing with the dataprotection system via a user interface 3003 selects a list of NamespaceElements to protect. Selection of Namespace Elements to protect istransferred to the data protector 3001, and in response the dataprotector provides to the user, via the user interface 3003, protectionintent defaults. In particular, the data protector, upon receipt ofselected Namespace Elements, identifies the protectable objectsassociated with the selected Namespace Elements and identifies a defaultlist of protection intents that are provided to the user.

A user, in response to receiving protection intent defaults, interactswith the user interface 3003 and modifies or selects the appropriatedefault. The data protector 3001 receives the selection or modificationsand stores the intents and creates a protected group for the objects.The intents may be stored in any format including, but not limited to,binary, Extensible Markup Language (XML), or a database table. The dataprotector 3001 applies any modifications to the protection intentdefaults and uses the modified protection intents to create a detailedplan for protecting the protected group that may also be stored in anyform including, but not limited to, binary, XML, or a database table.

Similar to creating a detailed plan for protecting a protected group,the data protector has the ability to create a recovery plan forselected recoverable objects given stated recovery intents, recoveryparameters, and a selection of a Namespace Element to recover. To createa recovery plan, the data protector determines the necessary recoverysources and sequences them appropriately. Additionally, the dataprotector determines a recovery target that is the physical pathidentifying where the data is to be restored.

Several different recovery intents may be specified to control howrecovery proceeds. For example, an overwrite intent controls whathappens if when trying to recover a file to the production location, itis determined that the file already exists at the production location.Several alternatives may be provided, including, but not limited to,always overwrite, never overwrite, use the most recent of the two.Another recovery intent that may be specified is how the security of therestored objects should be set. For example, it may be specified thatthe security of the restored object inherits the security from theparent object (e.g., the security of a file restored to a folder wouldreceive the same security as the folder). An alternative model is torestore the security of the recovered object to exactly what it was whenit was backed up. Intents may also specify if the recovered object is tobe encrypted during transmission and/or when stored.

FIGS. 31 and 32 illustrate a flow diagram of an intent translationroutine for translating protection intents into a detailed plan forprotecting physical objects located at a production location, inaccordance with an embodiment of the present invention. The intenttranslation routine 3200 begins at block 3201, and at block 3203 aselection of Namespace Elements that are to be protected and protectionintents that are to be applied for the selected Namespace Elements arereceived. As described above, Namespace Elements are mapped toprotectable objects located at a production location. In addition, asdescribed above, selection of Namespace Elements and the associatedprotectable objects are compiled by the data protection system into aprotected group to which the protection intents are applied. At block3205 that protected group is marked “under translation.” Marking theprotected group “under translation” prevents a user from making anychanges to the protected group until either intent translation completessuccessfully or fails, rolling back any changes it had made.

At block 3207, the resource requirements necessary to adequately provideprotection to the selected protected group are computed. The resourcerequirements are identified by determining what changes are required forthe protected group. Examples of changes that may be required for aprotected group include, but are not limited to, a new data source beingadded to the protected group, a data source being removed from theprotected group, a data source for the protected group being changed byeither adding or removing protected objects, resources being added orreclaimed (e.g., addition or deletion of disk space to a replica,addition or deletion of removable media to an archive), protection goalsor schedules being adjusted for the protected group, or a new protectedgroup being added for the first time. In addition, the size of theresources necessary is determined by identifying the size of theprotected objects located on the production location that are going tobe copied and stored at the storage location and the particularprotection method and protection intents that have been specified.

At block 3209, the resource plan is generated and executed to allocatethe resources necessary for providing protection for the protectedgroup. A resource plan determines the needed resources and includes anyjobs necessary to obtain those resources. For example, such jobs mayinclude allocating disk space, growing existing storage space,allocating tape media, allocating tape library changer and drive,requesting tape from a free media pool, etc. The jobs included in theresource plan are dependent on the type of protection desired by theuser. For example, for replication, the jobs would include allocatingdisk resources for a replica and temporal version, and possiblyallocating resources for a log area. The jobs associated with theresource plan generated at block 3209 are executed and the necessaryresources for the protected group are allocated.

After the resources have been allocated, at block 3211 a checkpoint iscreated by the data protection system. In an alternate embodiment, theresource plan may only include the creation of the jobs necessary toallocate those resources and not actually include execution of thosejobs. Execution of jobs associated with a resource plan may be scheduledand performed as part of the preparation plan. In such an embodiment,the checkpoint would not be generated until intent translationcompleted. Thus, if intent translation did not complete, it would haveto restart from the beginning. As discussed below with respect to block3209, creating a checkpoint after allocation of resources, provides aknown point where the intent translation routine may restart if theroutine does not complete successfully.

Since it is possible for some but not all of the resources to beallocated during execution of resource allocation jobs (e.g., the systemcrashes after allocating part of the physical resources but not others),there is included in an embodiment of the present invention a clean-uproutine to clean up resources that were not fully allocated in anincomplete run of the intent translation routine. This clean-up routineis accomplished by designing the resource allocation of the system tobehave in a certain way. In an actual embodiment, resources areallocated on a per datasource basis and either all resources necessaryfor a given datasource are allocated or none are. If some but not all ofthe resources are allocated and the allocation jobs are interrupted,then a refresh job is created to clean up any partially allocatedresources from a previous run of the allocation jobs of a resourceallocation plan. Once the clean-up routine has cleaned up any partiallyallocated resources, then the data protection system can re-allocateresources as needed. Intent translation may continue for those newprotected objects for which resources have been successfully allocated.

Referring back to FIG. 31, at block 3211 upon successful completion ofthe allocation of the resources at block 3209, a checkpoint isgenerated. Creation of a checkpoint after resources have been allocated,provides the ability for the data protection system to resolve anyproblems that may have been created if the intent translation routine3200 is interrupted after the resources have been allocated but prior tocompletion. For example, if the system crashes before completion of theintent translation routine, but after the first checkpoint has beenadded, as illustrated by block 3211, upon restart, the data protectionsystem identifies that an intent translation routine was interrupted andlocates the checkpoint added subsequent to allocation of resources. Byidentifying the checkpoint, the previously allocated resources may used,and the intent translation routine 3200 can resume from that checkpointwithout having to completely restart and reallocate resources.Restarting after an interruption to an intent translation routine willbe described in more detail with respect to FIG. 38.

At decision block 3213, the intent translation routine 3200 determinesif there are any existing jobs and/or tasks currently associated withthe protected group. If it is determined at decision block 3213 thatthere are existing jobs and/or tasks associated with the protectedgroup, at block 3215 those jobs and tasks are de-registered and anyactive jobs are terminated, as illustrated by block 3217. Jobs and tasksmay previously exist for a protected group if that protected group isbeing modified, rather than being created for the first time.

If it is determined at decision block 3213 that there are no existingjobs and/or tasks for the protected group, or after termination ofexisting jobs and/or tasks at block 3217, the intent translation routine3200, at block 3219, creates and schedules a protection plan. As will bedescribed in more detail below, a protection plan includes a list ofjobs that are necessary to maintain the accuracy of the copy of theprotected group at a storage location over time. In addition, the intenttranslation routine 3200, at block 3221, creates and schedules apreparation plan. As described in more detail below, the preparationplan includes a list of one-time jobs that are utilized to place theproduction location and storage location in a state such that the jobsassociated with the protection plan may be executed and the accuracy ofprotection of a protected group may be accomplished. For example, ifthis is the first time the protected group has been created and it is tobe stored on a replica, there will be no copy of the data associatedwith the protected group residing on the replica. Thus, one of the jobsassociated with the preparation plan may be the creation of a copy ofthe protected objects and storage of that copy on the replica.

Referring now to FIG. 32, at block 3225 the intent translation routine3200 creates the saved searches and auto discovery groups discussedabove. As discussed above, those auto discovery groups and savedsearches are executed as part of the scheduled discovery routine.

After the jobs for the resource plan, preparation plan, protection plan,saved searches, and auto discovery groups have been created, at block3227 a second checkpoint indicating the completion of the creation ofjobs is added to the data protection system. As indicated above anddiscussed in more detail below, this checkpoint may be used by the dataprotection system to recover from an interruption that occurs during theintent translation routine 3200. For example, if the intent translationroutine 3200 is interrupted after a checkpoint has been created, asillustrated by block 3227, during re-start the data protection systemidentifies that an intent translation routine 3200 was in progress, andlocates the checkpoint indicating that the plans and jobs have beencreated. Upon identification of the checkpoint, the intent translationroutine 3200 may be resumed and completed from that checkpoint.

At block 3229, the status of newly protected objects and previouslyprotected objects that have been removed from protection are updated toreflect their inclusion in and exclusion from the protection plan.Protected objects that are marked as having resource allocation errorsin block 3209 are returned to the “pending state.” At block 3231, allcheckpoints are deleted and the protected group is marked as “not undertranslation.” If all protected objects have been removed, the protectedgroup may be deleted. At block 3233 the intent translation routine 3200completes.

FIG. 33 is a flow diagram of a protection plan creation routine forcreating a protection plan for a protected group, in accordance with anembodiment of the present invention. The protection plan creationroutine 3300 describes in more detail the creation and scheduling of aprotection plan referred to above with respect to block 3219 (FIG. 31).The protection plan creation routine 3300 begins at block 3301 and atblock 3303 a copy job for the protected group is created and scheduled.A copy job is a job that copies changes that have occurred to one ormore protectable objects at a production location to a copy of thecorresponding one or more protectable objects stored at a storagelocation. For example, if during the day a user modifies protectedobjects located at the production location, upon execution of a copyjob, those changes are copied, transferred to the storage location, andthe copy is updated to include those changes.

At block 3305 the protection plan creation routine 3300 creates andschedules a temporal version job. A temporal version job is a jobscheduled to perform the actual versioning of data at the storagelocation. Creation of temporal versions is known by those skilled in therelevant art and will not be described in detail herein.

At block 3307 a validation routine is created and scheduled. Whenexecuted, the job performs the validation routine as described in detailbelow with respect to FIG. 35. At block 3309 the protection plancreation routine 3300 completes.

FIG. 34 is a flow diagram of a preparation plan execution routine forexecuting a preparation plan, in accordance with an embodiment of thepresent invention. The preparation plan execution routine 3400 begins atblock 3401 and at block 3403 a determination is made as to whetheradditional resources are needed for protecting the protected group. Asdescribed above, a resource plan is generated for determining theresources necessary for protecting a protected group at a storagelocation. In one embodiment, those resources may be allocated during theresource plan prior to creation and execution of a preparation plan.

If it is determined at decision block 3403 that resources are needed, atblock 3405 the jobs created in the resource plan for allocating thoseresources are executed and the resources are allocated.

Subsequent to the allocation of resources at block 3405, or if it isdetermined at block 3403 that additional resources are not needed forprotection of the protected group, at block 3407 an initial copy of thephysical objects associated with the protected group is created,transferred to the storage location, and stored on the previouslyallocated resources. Once the initial copy of the protected group iscreated and stored at the storage location, for replication, at block3409 that copy is validated with the actual physical objects located atthe production location. Validation will be discussed below with respectto FIG. 35.

At decision block 3411 a determination is made as to whether anyprotected objects have been removed from the protected group. If it isdetermined at block 3411 that protected objects have been removed fromthe protected group, at block 3413, the preparation plan includes jobsto stop monitoring those objects and those objects remain protectableobjects. Since monitoring consumes resources, the jobs stop monitoringwhen it is no longer needed. At block 3415 the preparation planexecution routine 3400 completes.

As mentioned above, more or fewer blocks may be used for performing theroutines described herein. For example, when copying is accomplished viamedia load, the preparation plan 3400 does not create an initial copy ofthe data (block 3407). Likewise, when the copy is for archive, thepreparation plan 3400 does not create an initial copy of the data (block3407).

FIG. 35 is a flow diagram of a validation routine for validating a copyof data located at a storage location, in accordance with an embodimentof the present invention. The validation routine 3500 begins at block3501, and at block 3503 the validation routine 3500 obtains a validationparameter for physical objects located at a production location. As willbe appreciated by one skilled in the relevant art, a validationparameter may be a checksum of the physical objects located at theproduction location. Alternatively, a validation parameter may be a lastchange time of the physical objects at the production location, or asize of the physical objects located at the production location. Ingeneral, the validation parameter may be any type of identification forphysical objects located at the production location.

At block 3505 the validation routine 3500 obtains a validation parameterfor the objects located at the storage location. Similar to thevalidation parameter for objects at a production location, thevalidation parameters of objects at a storage location may be achecksum, last change time, file size, etc.

At block 3507 the validation parameters of the protected objects at theproduction location obtained in block 3503 and the validation parametersof the objects at the storage location obtained in block 3505 arecompared to confirm that the objects located at the storage locationmatch the protected objects located at the production location. Atdecision block 3509, a determination is made as to whether theparameters compared at block 3507 match. If it is determined at block3509 that the parameters do not match, at block 3513 the validationroutine 3500 recopies the non-matching protected objects from theproduction location and replaces the objects located at the storagelocation and proceeds to decision block 3511.

However, if it is determined at decision block 3509 that the parametersmatch, at decision block 3511 a determination is made as to whetherthere is additional data that has not yet been validated for theprotected group. If it is determined that there is additional datalocated at the storage location that has not been validated for theprotected group, the validation routine returns to block 3503 and theprocess continues. Alternatively, if it is determined at decision block3511 that there is no additional data, the storage location isvalidated, and the validation routine completes at block 3515, therebyconfirming that the objects located at the storage location match theprotected objects.

In addition to the validation routine executing as part of thepreparation plan during intent translation to confirm the accuracy of acopy, validation routines may be scheduled to subsequently reconfirm theaccuracy of the protection of physical objects. Still further, avalidation routine may be scheduled and executed to place a copy ofobjects located at a storage location into a valid state. A copy ofphysical objects located at a storage location may be in an invalidstate if the system crashes or if some other type of unscheduled changeoccurs. For example, a replica may become invalid if a change log(discussed below) overflows due to a failure to apply those changes atthe storage location.

FIG. 36 is a flow diagram of a scheduled validation routine forvalidating a copy of objects located at a storage location, inaccordance with an embodiment of the present invention. The scheduledvalidation routine 3600 begins at block 3601 and at block 3603 theroutine identifies the copy of objects of a protected group that arelocated at a storage location that are to be validated. At decisionblock 3605, a determination is made as to whether the identified copy isin a valid state or an invalid state. If it is determined at decisionblock 3605 that the identified copy is in an invalid state, at block3607 the scheduled validation routine 3600 executes the validationroutine 3500 described with respect to FIG. 35.

However, if it is determined at decision block 3605 that the copy is ina valid state, at decision block 3609 a determination is made as towhether any additional copies of protected groups located at a storagelocation need to have their validity confirmed. If it is determined atdecision block 3609 that additional copies need to have their validityconfirmed, the scheduled validation routine 3600 returns to block 3603and identifies the additional copies to be validated and continues withthat process. However, if it is determined at decision block 3609 thatthere are no additional copies located at the storage location that areto be validated, the scheduled validation routine 3600 completes, asillustrated by block 3611.

FIG. 37 illustrates a block diagram of state transitions for a replica,in accordance with an embodiment of the present invention. Prior toallocating part of a storage location during resource allocation, thereplica is in an unallocated state. After intent translation allocatesthe resources for a protected group, the replica transitions to anallocated state. The contents (copy of the protected group) must then betransferred and stored at the storage location. Transfer and storage maybe accomplished using either disk-to-disk initialization (automaticallyby the data protection system), by an automated media load, or manuallyby the administrator (for example, by a manual media load). Ifdisk-to-disk initialization is done, the intent translator automaticallycreates an initial copy job. The initial copy job, upon execution, willplace the replica in an invalid state. If the copy is initialized usinga media load, then the user indicates when the media load is completeand the replica is placed in an invalid state at that point.

Once the replica is in an invalid state, it is necessary for avalidation job to be run to place it into a valid state. As discussedabove, a validation job makes sure that the copy at the storage locationmatches the protected objects at the production location.

In addition to a replica being in an allocated state 3703, an invalidstate 3705, or valid state 3711, a replica may transition to a missingstate 3713. For example, over time, the physical media allocated for areplica for a particular protected group may fail, thereby placing thereplica in the missing state. From the missing state 3713, the dataprotection system, with interaction from a user, determines whether theinformation that was being replicated needs to continue being protected.If the protected group is to have continued protection, resources arereallocated, thereby transitioning the replica back to an allocatedstate 3703. If it is determined from the missing state 3713 that theinformation associated with that replica no longer needs to beprotected, the replica may transition to the destroyed state 3707, andreplication for the protected group will no longer be performed by thedata protection system.

The replica may also temporarily transition to the missing state 3713.For example, a disk may be temporarily disconnected or unavailable dueto some hardware problem and subsequently become available again. Insuch an instance, upon the disk becoming available again, the replicamay return to the valid state 3711 or the invalid state 3705

The destroyed state 3707 is reached in response to a user indicatingthat it no longer wants to protect the protected group. A replica maytransition to the destroyed state 3707 from any other state. Forexample, if a replica is in the invalid state 3705, a user may indicatethat it no longer wants to protect the protected objects copied on thereplica, thereby transitioning the replica to the destroyed state 3707.Placing a replica in a destroyed state indicates to the data protectionsystem that the user is done protecting the protected objects copied onthe replica and the physical media, such as a hard disk, may be returnedto the free media pool and may be allocated to other protected groups.

In an embodiment of the present invention, when a user indicates that itno longer wants to continue protection of the protected objects copiedon the replica, the replica may transition to a stop state 3709, wherebythe replica and its temporal versions are maintained for a finite periodof time. Maintaining information after it has been indicated as nolonger protected provides a user with the ability to recover thatinformation up to the point it stopped protection.

FIG. 38 illustrates a flow diagram of a restart routine for restartingthe intent translation routine subsequent to an interruption thatoccurred during a previous intent translation routine, in accordancewith an embodiment of the present invention. The restart routine 3800begins at block 3801, and at decision block 3803 the routine determineswhether a protected group was currently under intent translation. If itis determined at decision block 3803 that a protected group was underintent translation, at decision block 3805 a determination is made as towhether all the resources had been allocated for the protected groupunder intent translation. If it is determined at decision block 3805that all the resources had not been allocated, then any resources thatwere allocated prior to the restart are deallocated, as illustrated byblock 3806. After deallocation of any previously allocated resources, atdecision block 3807 it is determined whether the protected group underintent translation was a new protected group. If it is determined atdecision block 3807 that the protected group is not a new protectedgroup, at block 3808 the routine returns new objects that have beenadded to the existing protected group to a pending status. Inparticular, the new objects are returning to not protected by the userand pending user action.

At block 3809 the existing protected group is marked as not being undertranslation and at block 3817 the routine completes. Returning theexisting group to not being under translation, and returning the newobjects to a pending status returns the data protection system to itsstate prior to the attempted translation. In particular, the new objectsmust again be added to an existing protected group and objects of anexisting protected group continue to be protected as they were protectedprior to the initial attempt at the intent translation routine.

Referring back to decision block 3807, if it is determined that theprotected group that was under intent translation when the interruptionoccurred was a new protected group, at block 3811 all protected objectsof the new protected group are returned to a pending status (i.e., notprotected by the user and pending user action) and the routine completesat block 3817. In addition to returning the objects to a pending state,the protected group may also be deleted as there are no protectedobjects within the group.

Referring back to decision block 3805, if it is determined that all theresources were allocated prior to the interruption, at block 3813 thelast checkpoint that was generated by the attempted intent translationroutine is identified. As discussed above, checkpoints are generated attwo different points in the intent translation routine. In particular, acheckpoint is generated after resources have been allocated and againafter the protection plan has been created or updated and after thepreparation plan has been created. Once the last checkpoint has beenidentified at block 3813, the intent translation routine is restartedfrom the last checkpoint that was identified, as illustrated by block3815 and the process completes at block 3817.

There are several ways that physical objects may be protected at astorage location. For example, replicas may be maintained on a computingdevice such as a server, archive copies may be stored on physical mediasuch as tape or other removable media, etc. The type of protectiondesired by user is provided as part of the protection intents, or highlevel goals, that are translated to a set of plans by the intenttranslator, as discussed above. For archive of data onto tape or otherremovable media, data protection works by creating “datasets” whichcontain, via one or more physical pieces of media, a representation ofdata of a protected group at a specific point-in-time or changes thereofwith respect to a point-in-time. A dataset is a result of one or morearchive paths associated with one or more protected objects.Additionally, each dataset may contain one or more recovery sourcesbecause multiple recovery sources may contribute to a recovery, multipledatasets may also be necessary to contribute to a recovery.

Unlike other backup applications, where media is the primary object thatis managed, according to an embodiment of the present invention,datasets and the association of datasets with the media are managed,instead of the media itself.

Archiving is designed to keep data over long periods of time (on theorder of weeks, months or years). Archived media is typically keptoffsite to protect against disasters that affect the entire productionlocation such as an earthquake or fire. Archived media may also be keptonsite for recovery from smaller outages, including loss of a server ordisk or user error. Additionally, for those embodiments utilizing bothreplication and archive, the archived media may be kept at the storagelocation with the replica, at the production location, or at a separatelocation.

FIG. 39 illustrates an archive protection plan creation routine forgenerating a plan for archiving data, in accordance with an embodimentof the present invention. The archive protection plan creation routine3900 begins at block 3901, and at block 3903 the routine receives a dataprotection kind. A data protection kind is identified by a user as towhether they want to archive their data onsite, offsite, or both onsiteand offsite. In addition to receiving a data protection kind, at block3905 the routine receives a data protection duration. The duration ofdata protection is a high level intent provided by a user as to how farin the past they want to be able to recover the protected information.These intents may be stated as goals as to what a user wants to be ableto recover.

For example, providing the intent of “I want to be able to recover datafor up to seven years” will translate into an archive plan that willallow the user to be able to recover data for information that existedat the production location seven years ago. Data protection duration maybe years, months, weeks, or days. As illustrated by block 3907, thearchive protection plan creation routine 3900 also receives schedulingintentions, such as when a user wants to have the action of archivingdata occur. In an alternative embodiment, a data protection format mayalso be received. Data protection format includes, but is not limitedto, full backup, differential backup, and incremental backup. A fullbackup, as used herein, is a backup in which all protected objects arecopied to a storage location. A differential backup, as used herein, isa backup in which protected objects that have been modified since thelast full backup are copied to the storage location. Incremental backup,as used herein, is a backup in which only the protected objects thathave been modified since the time of some previous backup (full,differential, or incremental) are copied. As discussed herein,differential and incremental backup are referred to generally as a“partial backup,” and such is intended to identify either. A user mayalso specify whether the archive should be created from the originaldata at the production location or that the archive should be createdfrom the copy at the storage location.

Based on the data protection kind and the protection duration, thearchive protection plan creation routine 3900 determines a defaultarchive scheme that satisfies the high level requirements specified bythe user. In an actual embodiment, there are four different types ofschemes for archiving data. A first scheme, referred to as a greatgrandfather, grandfather, father, son (GGFS) provides a yearly fullbackup that is maintained onsite for four weeks and a copy is maintainedoffsite for some number of years; a monthly full backup that ismaintained onsite for four weeks and a copy is maintained offsite for ayear, a weekly full backup that is maintained onsite for four weeks anda copy is maintained offsite for four weeks; and daily differentialbackup that is maintained onsite for two weeks. In an alternativeembodiment, only onsite or offsite copies may be maintained depending onthe protection kind identified in block 3903. In another embodiment, theonsite copy itself may be transferred and maintained offsite after aperiod of time based on the protection kind identified at block 3903.Another scheme is referred to herein as a grandfather, father, son (GFS)scheme. The GFS scheme provides a monthly full backup that is maintainedonsite for four weeks and a copy is maintained offsite for a year, aweekly full backup that is maintained onsite for four weeks and a copyis maintained offsite for four weeks; and a daily differential backupthat is maintained onsite for two weeks.

Another archive scheme is referred to herein as a father, son (FS)scheme. The FS scheme provides a weekly full backup that is maintainedonsite for four weeks and a copy is maintained offsite for four weeks,and a daily differential backup that is maintained onsite for two weeks.Another archive scheme referred to herein is a son (S) scheme. An Sscheme provides a daily full backup that is maintained onsite for oneweek and a copy is maintained offsite for one week. Finally, an ad hocroutine is also available that provides a backup taken outside of thenormal protection scheme. This may be a full backup with no expirationthat is kept onsite or offsite.

It will be appreciated by one skilled in the art that the defaultarchive schemes may be modified at any level by the user andadditional/alternative default archive schemes may also be presented.For example, the kind (onsite, offsite), duration (month, year), andformat (full, differential, incremental) may be modified. Additionally,a user may specify scheduling controls for the archive scheme. Forexample, a user may indicate the day of the week on which the scheme isto begin, the time of the day the archives are to be generated, whetherthe scheme is to operate on a corporate calendar, monthly calendar, etc.

Referring back to FIG. 39, the default archive scheme is provided to auser and the user is given the ability to override any portion of theprovided scheme. At decision block 3911 a determination is made as towhether the user has provided any overrides to the determined archivescheme. If it is determined at decision block 3911 that a user hasprovided overrides, at block 3913 the archive scheme is modified toinclude those overrides. Overrides may be provided for any portion of abackup scheme and may be varied in scope. For example, the overrides mayinclude the backup format (full, differential, incremental) the numberof onsite copies to be maintained, the number of offsite copies to bemaintained, the retention period for offsite copies, whether to disablethe S level, whether the dataset produced by the backup should beverified and when, whether the archive should take place at theproduction location, storage location, or elsewhere, the starting day ofthe week, the number of working days, etc. Disabling the S level may bedesirable for a variety of reasons. For example, if a user hasimplemented both archive and replication, the user may decide todispense with daily archive protection (the S level) and rely onreplication to handle all onsite recovery requirements.

Once the archive scheme determined in block 3909 has either beenaccepted or modified as illustrated at block 3913, at block 3915 thearchive plan creation routine 3900 generates the plans necessary forprotecting the data by archive. As discussed above, the plans necessaryfor protecting data may include a resource plan, a preparation plan, anda protection plan. Finally, after the plans have been generated asillustrated by block 3915, the archive protection plan creation routine3900 completes at block 3917.

FIG. 40 is a table illustrating an example of the different generationsthat may be used for generating an archive scheme, in accordance with anembodiment of the present invention. The table 4000 identifies a songeneration 4001 having an incremental mode of backup that maintains oneonsite copy for two weeks that occurs five days a week (e.g.,Monday-Friday) and maintains no offsite copies. The father generation4003 maintains a full mode of backup with one onsite copy that isretained for four weeks and a full backup is performed once per week(e.g., Saturday), except for one week out of each month it is notperformed (e.g., the last Saturday of each month). Likewise, the fathergeneration 4003 maintains one offsite copy for four weeks. Thegrandfather generation 4005 has a full mode of backup that maintains oneonsite copy for four weeks that is generated once per month (e.g., thelast Saturday of each month), with the exception of one month per yearit is not performed (e.g., the last Saturday of the year). Additionally,the grandfather generation 4005 maintains one offsite copy for 12months. Finally, the great grandfather generation 4007 has a full modeof backup that maintains one onsite copy that is retained for four weeksand generated once per year (e.g., the last Saturday of the year).Additionally, the great grandfather generation 4007 maintains oneoffsite copy for seven years.

As an alternative to scheduling according to a corporate calendar (lastSaturday of the month, last Saturday of the year, etc.), scheduling maybe accomplished according to a physical Calendar. For example, jobs maybe scheduled to occur on the last day of the month, last day of theyear, first day of the month, etc. Those days may or may not be aSaturday. As will be appreciated by one skilled in the relevant art, anytype of scheduling and/or calendering may be utilized with embodimentsof the present invention, and utilizing a corporate calendar or aphysical calendar are provided as examples only. Another aspect of thescheduling is the ability to specify periods in which jobs are to beexecuted. Scheduling a period for execution times for jobs allows a userthe ability to identify particular times when jobs may be performed.Additionally, the data protection system may provide advance warningwhen the protection system sees that jobs may not complete by thespecified time. Alternatively, when a job does not complete during thescheduled period of execution time, it may be automatically terminated,and possibly rescheduled.

As will be appreciated by one skilled in the relevant art, generationssuch as son 4001, father 4003, grandfather 4005, and great grandfather4007 may be modified to utilize different variations on the protectionplan described with respect to FIG. 40. The only requirement is that theparent be an equal or superset of the child. For example, if the fathergeneration is a full backup, the son generation may be a full,differential or incremental backup. Additionally, the number of copiesmaintained onsite or offsite may be any combination from zero to anynumber desired by a user. The retention time and frequency with whichcopies are made may also be adjusted as desired by a user.

In addition to creating an archive scheme for long-term protection ofdata, the data protection system provides an ongoing allocation,rotation, vaulting (offsite storage) and retirement of media. Thus,according to an embodiment of the present invention, associated witheach protected group is a media pool. A media pool is both a containerof media as well as an object on which various intents are placed inorder to control the allocation and recycling of media. As will bedescribed in more detail with respect to FIG. 41, there are severaltypes of intents for controlling media allocation, such as co-locationintents. Examples of co-location intents that may be used according toan embodiment of the present invention are: job collocation intents, soncollocation intents, and father/son collocation intents. Job collocationintents attempt to use the same media for tasks within the same job.This reduces the number of mounts/dismounts of the media when a job hasmultiple tasks and the data from those tasks fit on a single piece ofmedia Son's collocation intent controls how media is used for the sonjobs of either a GGFS, GFS, FS or S archive schemes. If the son'scollocation intent is specified, the first son job of a cycle (such as aweek cycle) will start on a new piece of media, but all subsequent sonswill attempt to append to the same piece of media unless it isunavailable or does not contain sufficient space. Use of a father/soncollocation intent will cause a weekly full and subsequent dailydifferential and incremental backups to be stored on the same piece ofmedia

FIG. 41 is a flow routine for allocating media for archiving data ifeach of the job collocation intent and the sons collocation intent havebeen specified, in accordance with an embodiment of the presentinvention. As will be appreciated, other combinations of the collocationintents may be specified for allocating media for archive, and theroutine described with respect to FIG. 41 is only one example. The mediaallocation routine 4100 is performed whenever media is needed. The mediaallocation routine 4100 begins at block 4101 and at decision block 4102it is determined whether job collocation has been specified. If it isdetermined that job collocation has not been specified, the mediaallocation routine proceeds to decision block 4111, and continues asdescribed below. However, if it is determined at decision block 4102that job collocation has been specified, at decision block 4103 adetermination is made as to whether the task that is attempting toallocate media is from a replacement job. A replacement job is a jobthat is replacing a previous job that did not complete successfully. Ifit is determined at decision block 4103 that the task is from areplacement job, at block 4105 the routine attempts to allocate the samephysical media that was used and allocated in the original job that didnot complete successfully.

However, if it is determined at block 4103 that the task is not from areplacement job, at decision block 4107 a determination is made as towhether the task is the first task from a job. If it is determined thatthe task is not a first task from a job, at block 4109 the mediaallocation routine 4100 attempts to allocate media that was alreadyallocated for previous tasks of the same job.

However, if it is determined at decision block 4107 that the task is notthe first task from a job, at decision block 4111 a determination ismade as to whether the dataset being protected is a first son dataset.If it is determined at block 4111 that the dataset being protected is afirst son dataset, at decision block 4112 it is determined whether theFS collocation intent is specified. If the FS collocation intent isspecified, at block 4113 the media allocation routine 4100 attempts toallocate media used by the father dataset of the same cycle. A cycle asdescribed herein, is a scheduled length of time for the archive set(such as days or weeks). However, if it is determined at decision block4112 that the FS collocation intent is not specified, the routineproceeds to decision block 4115, described below.

If it is determined at decision block 4111 that the dataset is not a sondataset or is not the first son of a cycle, at decision block 4114 it isdetermined whether the dataset is a second or later son dataset. If itis determined that the dataset is a second or later son dataset, atdecision block 4118 it is determined whether the FS collocation intentor the S collocation intent is specified. If the FS collocation intentor the S collocation intent is specified, at block 4116 the mediaallocation routine 4100 attempts to allocate media used by the last sondataset of the same cycle. However, if it is determined at decisionblock 4118 that neither the FS collocation intent nor the S collocationintent is specified, the routine proceeds to block 4115, describedbelow.

However, if it is determined at decision block 4114 that the dataset isnot a second or later son dataset, at decision block 4115 adetermination is made as to whether recyclable media from the samegeneration is available. For example, if a dataset is a father dataset,a determination is made as to whether there are other father datasetscontained on media that is available. If it is determined at decisionblock 4115 that there are available recyclable media from the samegeneration, at block 4117 the media allocation routine 4100 chooses theoldest recyclable media available from the same generation and attemptsto allocate that media.

If it is determined at decision block 4115 that there is no mediaavailable from the same generation, or if it is determined at decisionblock 4127 that one of the attempted allocations of blocks 4105, 4109.4113, 4117 did not complete successfully, at decision block 4119 adetermination is made as to whether there is any media in the pool thatis free. If it is determined at decision block 4119 that there is mediawithin the pool, at block 4121 the media allocation routine 4100 obtainsthe free media from the pool and that media is used for allocation.

Finally, if it is determined at decision block 4119 that there is nofree media within the pool for the particular protected group, the mediaallocation routine 4100 at block 4123 attempts to obtain additionalmedia. Additional media may be obtained by notifying the user thatadditional media is required for the protected pool or querying theexisting free media pool. The free media pool contains media that is notassociated with another protected group. If no free media is availablein the free media pool, the user is notified that additional free medianeeds to be added to the storage location and assigned to the free mediapool. The media allocation routine 4100 completes after the additionalmedia has been allocated or it fails if additional media cannot beallocated, as illustrated by block 4125.

In addition to the intents described with respect to FIG. 41, additionalintents may be utilized to control activities of a media pool. Forexample, a max limit intent that specifies the maximum number of piecesof media that may be maintained in a media pool may be specified by auser. Utilizing the max limit intent prevents the unnecessary additions(either by a user or automatically) of media to the pool beyond the maxlimit. Similarly, a max daily limit intent may be used to control thenumber of items of free media assigned to a particular pool during a 24hour period. Utilization of the max limit and the max daily limitprevent unnecessary or accidental assignment of media from a free poolto a particular pool.

A minimum threshold intent may also be specified for media allocationfor archive protection. The minimum threshold intent specifies theminimum number of pieces of media that should be available in the freemedia pool for allocation into various media pools. If the number offree media falls below the minimum amount then a user is notified thatadditional media needs to be added to the storage location and assignedto the free media pool. A media erase intent may also be specified whichcontrols whether any recyclable media needs to be erased prior to itbeing reused or being released to the free media pool for re-allocation.

Replication or copying of protected objects from a production locationto a storage location occurs between a pair of agents installed at eachlocation. The actions of the pair of agents are controlled by the dataprotector. For example, for replication, a clone agent is installed atthe production location and a replication agent is installed at thestorage location. The actions of the clone agent and replication agentare controlled by the data protector. Additionally, a data mover acts asa conduit between the pairs of agents. The data mover ensures mutualauthentication between the agents and optionally performs dataencryption, decryption, compression, or decompression. Still further,the data mover includes a throttling flow control to limit the networkbandwidth consumed by the data protection system during datatransmission.

FIG. 42 illustrates a block diagram of a data protection system, inaccordance with an embodiment of the present invention. The dataprotection system 4200 includes a data protector 4201 for managing thetransfer of data (protected objects) from a production location 4203 toa storage location 4205. As mentioned above, for replication, theproduction location 4203 includes a clone agent 4207 and a data moverportion 4209A for controlling the flow of data from the productionlocation 4203 to the storage location 4205. Likewise, the storagelocation 4205 includes a replication agent 4211 and a second portion ofthe data mover 4209B for obtaining information from the productionlocation 4203. Interaction between the production location 4203, storagelocation 4205, and data protector 4201 is used to transfer data from theproduction location 4203 to the storage location 4205 and to verify thevalidity of the transfer of that data by communication with the dataprotector 4201.

Data is transmitted from the production location 4203 via the data mover4209A through a communication channel 4213 to the storage location 4205via the data mover 4209B. The data protection system includes theability to monitor the transfer of data from the production location4203 to the storage location 4205, and if such communication channelfails, has the ability to resume the interrupted data transfer. In orderto be able to resume the transfer of data, as opposed to starting over,the state of the data transfer needs to be tracked and savedperiodically. This is accomplished by the data protector 4201 monitoringthe transfer of data from the production location 4203 to the storagelocation 4205.

Data is transferred over the communication channel 4213 in the form ofdata blocks or records. In such a transmission system, part of the datais kept by the production location 4203 and part of the data is kept bythe storage location 4205. If the communication channel fails, datatransfer is interrupted and the transmission state can losesynchronization. For example, the production location 4203 may havetransmitted a different number of records than the number of recordssuccessfully received by the storage location 4205. To resolve thisproblem, the data protector 4201 monitors and controls the datatransmission process by individually instructing the production location4203 and the storage location 4205 when to stop or start data transfer.

For protection of data, the clone agent 4207 located at the productionlocation 4203 transfers data to the replication agent 4211 located atthe storage location 4205 via the data mover 4209. That data istransmitted as data records over the communication channel 4213 for thepurpose of creating a replica or copy of the protected objects locatedat the production location. The clone agent and replication agentcommunicate data transfer states to the data protector 4201 as specialdata blocks referred to herein as record checkpoints. Record checkpointsare received by the data protector 4201 and stored in a database.Additionally, the data protector 4201 communicates instructions/commandsto the clone agent and replication agent.

Generally there are two types of data records that the clone agent 4207at the production location will transmit over the communication channel4213. The first type of data record represents the changes that havebeen made to the protected objects located on the production location.The second type of data record includes information (metadata) about theprotected objects data. Records containing metadata are generated by thedata protection system. As described below, metadata is used to validatethe copy of the data that is transmitted and stored at the storagelocation and may be, for example, a checksum of the data.

The state of the data transfer from a production location 4203 iscommunicated from the clone agent 4207 by inserting special data markers(record checkpoints) into the data record stream as it is beingtransmitted from a change log of the clone agent (FIGS. 43-47) to thespill log of the replication agent (FIGS. 43-47). In an actualembodiment, the record checkpoint is appended to the end of a datastream as it is being transmitted by the data mover 4209A of theproduction location. In an alternative embodiment, the record checkpointmay be added to the change log and transmitted along with the datastream as a item of data. Upon receipt of the data stream by the datamover 4209B of the storage location, the data and any record checkpointsare stored in the spill log.

When the replication agent 4211 encounters such record checkpoints inthe data stream, it forwards those record checkpoints to the dataprotector 4201. In addition, the replication agent produces its ownrecord checkpoints and forwards those to the data protector 4201 aswell. Information contained in the record checkpoints generated by boththe clone agent 4207 and the replication agent 4211 is used by the dataprotector when sending commands to start or stop operations.

When the data protector 4201 receives any of the record checkpoints, itautomatically stores them in a database thereby making the dataprotection system resilient to communication failures, processes, andsystem restarts.

In an actual embodiment of the present invention, the clone agent 4207generates two types of checkpoints referred to herein as “Class Ccheckpoints” and “Class A checkpoints.” Class C checkpoints representthe state of data records sent from the clone agent 4207 to thereplication agent 4211. Class A checkpoints represent a position withinthe total process of generating metadata records.

The replication agent 4211 generates one type of record checkpointreferred to herein as a “Class B checkpoint” Class B checkpointsidentify the data records that have been received and applied by thereplication agent 4211.

Class C and Class B checkpoints are data checkpoints. They are used toresume transmission of data from the clone agent 4207 to the replicationagent 4211 and to resume application of the received data records on thereplication agent 4211. Class A checkpoints are metadata checkpoints.They are used for monitoring long-running processes on the clone agent4207 that generate metadata. Generating Class A checkpoints reduces theamount of work to be repeated for such long-running processes in thecase of an interrupted data transmission.

In more detail, Class C checkpoints contain pointers to the location inthe data record stream on the clone agent 4207 system and thereplication agent 4211 system. Class C checkpoints are generated by theclone agent 4207 and forwarded to the replication agent 4211. Thereplication agent 4211 updates the Class C checkpoint with a pointer ofthe last received record in its spill log.

Class B checkpoints contain a pointer to the data record applied last bythe replication agent 4211 at the storage location 4205. When the dataprotector 4201 receives a Class B checkpoint it identifies to the dataprotector 4201 that all the data blocks prior to the Class B checkpointhave been applied to the replica of data stored at the storage location.

Class A checkpoints indicate the amount of protected data processed bythe clone agent 4207 while generating metadata. Upon receipt of a ClassA checkpoint by the replication agent, the replication agent adds itsown metadata if necessary and forwards the Class A checkpoint to thedata protector. When the data protector receives a Class A checkpoint itmeans that metadata generation is complete up to the location containedin the checkpoint. In an embodiment, Class A checkpoints may besequentially referenced (e.g., sequentially numbered) to enable the dataprotection system to determine if a Class A checkpoint was missed. If aClass A checkpoint is missed validation will be restarted as there is apotential that elements of the difference list may be missing. Asdiscussed below, a difference list includes information that identifiesprotected objects that do not have a match at the replica Those objectsare identified by comparing the metadata generated at the productionlocation with metadata generated at the storage location.

In addition to the three checkpoint types mentioned above, the dataprotector 4201 can generate a special marker token and send it to theclone agent located on the production location 4203 to be inserted intothe data record stream. This token is then transmitted by the cloneagent 4207, via the communication channel 4213, to the replication agent4211. Upon receipt the replication agent 4211 transmits the token backto the data protector 4201. The purpose of the marker token is to clearall Class A checkpoints from any data communication transmission priorto resuming metadata generation. By passing all Class A checkpointsthrough the system, the metadata that was already generated by the cloneagent 4207 is transmitted and only then is metadata generation resumed.The benefit of this is that it prevents data record transmission logsfrom overflowing (in case metadata generation process is much fasterthan the clone agent 4207 can send), and it avoids generating the samemetadata multiple times, because the data protector 4201 sees allmetadata prior to receiving the marker token.

FIGS. 43-44 illustrate a flow diagram of a data transfer monitoringroutine performed by a data protection system, in accordance with anembodiment of the present invention. As discussed above, data transferbetween a production location 4303 and a storage location 4305 isinitiated in response to a user or another individual making a change toprotected data or at a scheduled job execution time. In response to achange to protected data made by a user, the production location 4303records to a change log 4307 a record of the change to the protecteddata. For example, R₁, R₂, R₃, R4, R₅, and R₆ are each change recordsrecorded to the change log 4307 by the clone agent at the productionlocation 4303. Periodically, the records contained in the change log4307 are pulled from the change log 4307 by the data mover, batchedtogether and transmitted to the storage location 4305. In addition, theclone agent generates a Class C checkpoint containing a pointer to aposition in the change log 4307 of the last record being transmitted andappends the Class C checkpoint to the end of the transmission batch. Forexample, the clone agent may pull records R₁, R₂ and R₃ from the changelog 4307, batch those records together and transmit the batch to theproduction location 4305. A Class C checkpoint 4311 is generatedcontaining a pointer to the position in change log 4307 of R₃, which inthis case is change log position 4. The Class C checkpoint is appendedto the end of the batch that is transmitted to the production location4305.

While the above example illustrates that a Class C checkpoint may begenerated and transmitted with every transmission batch of data, in analternative embodiment, Class C checkpoints may be generated based onthe amount of data being transmitted. In such an embodiment, a Class Ccheckpoint may only be generated if the amount of data exceeds apredefined minimum transmission size. In yet another embodiment,generation and transmission of Class C checkpoints may be dependent uponthe time since the previous Class C checkpoint was generated andtransmitted. Still further, generation and transmission of Class Ccheckpoints may be generated and transmitted at a predetermined numberof data transmissions. For example, Class C checkpoints may be generatedand transmitted for every fifth data transmission. Still further, anycombination of the techniques for generating and transmittingcheckpoints may be utilized with embodiments of the present invention.For example, Class C checkpoints may be generated if the data exceeds aminimum size or on every fifth transmission.

The replication agent located at the storage location 4305 receives, viathe data mover, the transmitted records and the Class C checkpoint andstores the transmitted records and Class C checkpoint in a spill log4313. Additionally, upon receipt of the Class C checkpoint 4311, thereplication agent of the storage location 4305 adds a second pointer tothe Class C checkpoint identifying the location in the spill log 4313 ofthe Class C checkpoint, in this case the pointer added to the Class Ccheckpoint 4311 is a pointer to spill log location 106. Thus, the ClassC checkpoint 4313 contains a pointer to both the location of the lasttransmission position of the change log 4307 and the location of theClass C checkpoint in the spill log 4313. The Class C checkpoint 4315 isthen forwarded by the replication agent to the data protector 4301. Thedata protector 4301 records the Class C checkpoint in a database. In analternative embodiment, the Class C checkpoint is not stored in thespill log and instead the replication agent adds a pointer to the ClassC checkpoint identifying the last change record transmitted with thebatch and forwards the Class C checkpoint to the data protector 4301.

Referring now to FIG. 44, the data protector 4301 upon receipt of aClass C checkpoint from the storage location 4305 stores the Class Ccheckpoint in a database of the data protector and transmits a Class Ccheckpoint confirmation to the production location 4303. Receipt of aClass C checkpoint confirmation by the production location 4303identifies to the production location that all records transmitted priorto the Class C checkpoint have been received by the storage location4305 and that those transmitted records may be purged from the changelog 4307.

In addition to receiving records and storing those records in the spilllog 4313, the replication agent located at the storage location 4305begins applying the received records to the replica of data located atthe storage location 4305. At a predetermined point, the replicationagent generates a Class B checkpoint that includes a pointer to aposition within the spill log 4313 of the last record applied to thereplication data 4317. The predetermined point may be based on, forexample, but not limited to, the amount of data processed, the timesince the last Class B checkpoint, or a combination of the two. Forexample, the replication agent may apply R₁ from spill log 4313 position103, R₂ from spill log 4313 location 104, and after applying R₂ to thereplica data 4317 generate a Class B checkpoint which contains areference to the spill log position 104. A generated Class B checkpoint4319 is forwarded by the replication agent on the storage location 4305to the data protector 4301. The data protector 4301 stores the Class Bcheckpoint in a database to allow the record to be used in case of aninterruption of the data transfer.

Additionally, in response to receipt of a Class B checkpoint from thestorage location 4305, the data protector 4301 stores the Class Bcheckpoint in its database and transmits a Class B checkpointconfirmation back to the storage location 4305. Receipt of a Class Bcheckpoint confirmation by the storage location 4305 identifies to thestorage location 4305 that the data protector has recorded the lastposition of the records that have been applied to the replica data 4317and that those records may be purged from the spill log 4313.

The process of transferring records and applying those records toreplica data at a storage location and the cycling of checkpointsconfirms the accuracy of transmission of records from a productionlocation 4303 to a storage location 4305 and provides the data protector4301 with information that it may use to restart data transmission inthe result of a failure.

FIG. 45 illustrates a flow diagram of a data protection system thatrestarts transmission of change records from production location 4303 toa storage location 4305, in accordance with an embodiment of the presentinvention. For explanation purposes, we will assume that the system wastransferring data from the production location 4303 to the storagelocation 4305 and for some reason the transmission was interrupted andthat the system is resuming that transmission.

To resume transmission of data, the data protector 4301 refers to thelast recorded Class C and Class B checkpoints stored on the database ofthe data protector 4301 to identify restart positions for the productionlocation 4303 and the storage location 4305. For example, referring tothe recorded Class B checkpoint of B₂, the data protector 4301determines that the position in the spill log 4313 from which the lastrecord was applied was position 107. Thus, the data protector 4301generates a command that is transmitted to the storage location 4305instructing the replication agent of the storage location 4305 to startapplying records from spill log position 108 and to store the nextreceived data record after spill log position 111 (i.e., spill logposition 112). The position that the replication agent is start storingreceived records (112) is identified by referring to the last Class Ccheckpoint recorded in the database of the data protector 4301. In thisexample, the data protector 4301, referring to the Class C checkpoint ofC₃ identifies that the last known Class C checkpoint that was receivedby the storage location 4305 is located at spill log position 111.

Likewise, the data protector 4301, referring to the last received ClassC checkpoint of C₃ identifies that the last record transmitted by theproduction location 4303 that it knows was successfully received by thestorage location 4305 was located at change log position 9. Thus, thedata protector 4301 generates a command that is transmitted to theproduction location 4303 instructing the clone agent located at theproduction location 4303 to start sending records to the storagelocation 4305 beginning with record 10.

Overall, to efficiently resume transmission of data records, the dataprotector 4301 generates and sends three commands. A start sendingrecords command is generated and transmitted to the production location4303 identifying a transmission start point in the change log 4307. Astart applying records command is sent to the storage location 4305identifying a position within the spill log 4313 for which applicationis to resume. The third command, start storing received records command,is also generated and sent to the storage location 4305 identifying aposition within the spill log 4313 as to where newly received recordsare to be stored.

Referring to checkpoints such as Class B and Class C and generating astart applying records command, a start sending records command, and astart storing received records command allows the data protection systemto resynchronize itself without having to start the transmission of datafrom the beginning and without losing any data, by restarting from knowncheckpoints within the data transfer.

In addition to monitoring the transmission of change records from aproduction location 4303 to a storage location 4305, as discussed above,the data protection system has the ability to validate the integrity ofreplica data 4317 located at the storage location 4305. In an actualembodiment of the present invention, validation of data is accomplishedby transmitting validation records from the production location 4303that are compared with records at the storage location 4305.

FIGS. 46 and 47 illustrate flow diagrams of a validation routine forvalidating a replica 4317, in accordance with an embodiment of thepresent invention. To begin the validation routine, the data protector4301 generates a command that is issued to the production location 4303to start validation. In response to receiving a start validationcommand, the clone agent at the production location 4303 beginsgenerating metadata for each protected object located at the productionlocation 4303. That metadata is added to the change log 4307 as a recordand transmitted along with the change records. Records and metadata aretransmitted from the change log 4307 to the storage location 4305 asdiscussed above. Upon receipt of a change record, the replication agentlocated at the storage location 4305 applies the record to the replicadata 4317 as discussed above. Upon application of a metadata record,such as V₁, the replication agent located at the storage location 4305calculates metadata for the same portion of the replica data 4317. Thetwo items of metadata are compared to confirm the validity and integrityof that portion of the replica data. If the metadata does not match, thereplication agent generates a difference list identifying the protectedobject that does not have a match at the replica 4317.

As will be appreciated by one skilled in the relevant art, comparingreplica data with protected data utilizing metadata may be accomplishedby generating checksums for the data to be compared and/or by comparingany other identifying indicia, such as last change time, for the data.

At a predetermined point-in-time after a set of metadata records such asV₁ and V₂ have been included in the change log 4307, the clone agentlocated at the production location 4303 generates a Class A checkpointthat is added as a the record to the change log 4307. The Class Acheckpoint, such as A₁, is transmitted via a communication channel tothe storage location 4305 along with the change records and the metadatarecords.

Upon receipt of a Class A checkpoint by the replication agent at thestorage location 4305, the replication agent forwards the Class Acheckpoint and any difference list that has been generated as a resultof comparing metadata to the data protector 4301. As illustrated in FIG.46 the Class A checkpoint may be maintained in the spill log until it ispurged. Alternatively, upon receipt of a Class A checkpoint, it may beforwarded along with the difference list and not stored in the spilllog.

The data protector 4301 receives the Class A checkpoint and thedifference list and records the Class A checkpoint and difference listin a database. The difference list is forwarded to the productionlocation and the identified protected objects are re-replicated andre-transmitted to the storage location. The re-replication andre-transmission of the identified protected objects may occur inresponse to receiving the difference list or may be schedule to occur atsome later point in time (e.g., after validation of the replica iscomplete).

A Class A checkpoint includes within itself an identification of aparticular protected object up to which metadata has been calculated.For example, if metadata is being generated for protected objectslocated on C:\ at server1 and the last protected object for whichmetadata was generated was C:\file50 on server1, the Class A checkpointwould contain a reference to C:\file50 on server1. That information isstored by the data protector 4301 in a database so that in the case ofinterruption of data transmission it will have a reference point fromwhich to restart validation.

FIG. 47 illustrates a flow diagram describing the restart of avalidation routine that is generated by the data protection system torestart validation when validation has been interrupted at a particularpoint-in-time, in accordance with an embodiment of the presentinvention. For purposes of this discussion it will be assumed first thatdata transmission has been interrupted and is now being resumed. Whenresuming data transmission, the data protector 4301 generates and sendsa marker token, illustrated in FIG. 47 as A_(p). The marker token is aunique token generated by the data protector 4301 that is cycled throughthe system to clear all metadata and Class A checkpoints from the systembefore validation of data resumes.

The marker A_(p) is transmitted from the data protector 4301 to theproduction location 4303 and included in the change log 4307 by theclone agent located at the production location 4303. Upon receipt of amarker token A_(p) by the production location 4303, the clone agent addsthe marker A_(p) to the change log 4307 and subsequently transmits themarker A_(p) to the storage location 4305. Upon receipt by the storagelocation 4305 of the marker token A_(p), the replication agent locatedat the storage location 4305 forwards the marker token A_(p) back to thedata protector 4301.

Upon receipt of the marker token A_(p) by the data protector 4301, thedata protector 4301 becomes aware that all metadata for the system thathad previously been generated has been transmitted from the productionlocation 4303 to the storage location 4305. The data protector 4301,referring to the database of Class A checkpoints, identifies the lastClass A checkpoint that was transmitted and prepares a restart commandincluding a position at which the production location is to restartvalidation of data. The data protector 4301 transmits to the productionlocation 4303 the restart validation command and the identification of apoint at which validation of data is to resume.

For example, referring to FIG. 47, the data protector 4301 identifiesfrom its database that the last protected object for which metadata wascalculated during the previous validation routine was C:\file1003 onserver1. Thus, the data protector 4301 knows that metadata has beengenerated and transmitted for all files up to file1003 on volume C: atserver1, and thus generates a restart validation command instructing theproduction location 4303 to restart generation of metadata afterC:\file1003 on server1.

FIG. 48A is a flow diagram of a command processing routine forprocessing commands received by a production location, in accordancewith an embodiment of the present invention. The command processingroutine 4800 begins at block 4801 and at decision block 4803 adetermination is made as to whether a received command is a “starttransmission” command. As discussed above, commands are generated by thedata protector for controlling agents deployed throughout the dataprotection system. If it is determined at decision block 4803 that thereceived command is a “start transmission” command, at block 4805 astart transmission point is identified. A start transmission point maybe included in the “start transmission” command. The start transmissionpoint identifies a location within the change log from which datatransmission is to begin.

Additionally, at block 4807 an end transmission point is identified. Anend transmission point may be determined in a variety of ways. Forexample, an end transmission point may be identified by finding the lastrecord contained within the change log and using it as the endtransmission point, by determining a max size of the data transmissionand identifying a point within the log that reaches that size, etc. Uponidentification of the start and end transmission points, at block 4809the command processing routine 4800 passing control to the datatransmission flow (FIG. 48B).

Referring back to decision block 4803, if it is determined that thereceived command is not a “start transmission” command, at decisionblock 4811 it is determined whether the received command is a “startvalidation” command. If it is determined at decision block 4811 that thecommand is a “start validation” command, at block 4813 a location withinthe production location is identified as to where validation is tobegin. As with the start and end points for transmission, the locationmay be contained within the start validation command or obtainedseparately. Upon identification of a location within the productionlocation where validation is to begin, the command processing routing4800 passes control to the validation routine (FIG. 48C), as illustratedby block 4815.

If it is determined at decision block 4811 that the received command isnot a “start validation” command, at decision block 4817 it isdetermined whether the received command is a C checkpoint confirmation.If it is a C checkpoint confirmation, the records contained in thechange log that were transmitted prior to the C checkpoint that has beenconfirmed are purged from the change log, as illustrated by block 4819,and the routine completes at block 4821. However, if it is determined atdecision block 4817 that the received checkpoint is not a C checkpointconfirmation, then the received command is a marker token A_(p). Atblock 4823 the marker token A_(p) is placed in the change log and theroutine completes a block 4825.

FIG. 48B is a flow diagram of a transmit data routine for transmittingchange records from a production location to a storage location, inaccordance with an embodiment of the present invention. The transmitdata routine 4830 begins at block 4831 and at block 4833 a group ofchange records obtained from the change log are batched together fortransmission. The batch of records may be any number of records.Creating a batch of records may occur in response to a max size of thechange log being reached, after a change occurs, at a predeterminedpoint in time. As will be appreciated by one skilled in the relevantart, the timing for generation of a batch of records, and the size of abatch of records provided are simply examples and any timing and sizefor creating a batch of records may be utilized with embodiments of thepresent invention. For example, the batch of records may only includeone record and may be created every time a change occurs to the dataprotection system.

At block 4835 the batch of records is transmitted from the productionlocation. In addition to transmitting the batch of records a Class Ccheckpoint is generated and appended to the end of the batch of recordsand transmitted with as part of the batch of records. As discussedabove, Class C checkpoints contain pointers to the location within thechange log of the last change record included in the batch of records.At decision block 4837, a determination is made as to whether there areadditional records within the change log. If it is determined atdecision block 4837 that there are addition records, the transmit dataroutine 4830 returns control to block 4833 and the routine continues.However, if it is determined at decision block 4837 that there are nomore records to transmit the routine completes, as illustrated by block4839.

FIG. 48C is a flow diagram of a validation routine for validating data,in accordance with an embodiment of the present invention. Thevalidation routine 4840 begins at block 4841 and at decision block 4843it is determined whether there are any objects within the productionlocation for which validation needs to occur. If it is determined atdecision block 4843 that there are no additional objects to validate theroutine ends, as illustrated by block 4844. However, if it is determinedthat there are additional objects to validate, at block 4845 metadatafor an object is generated. In particular, the first object for whichmetadata may be generated is the object corresponding to the startlocation identified at block 4813 of the command processing routine 4800(FIG. 48A). Upon generation of metadata, that metadata is added to thechange log in the form of metadata record (V).

At decision block 4847 a determination is made as to whether a Class Acheckpoint is to be generated and added to the change log. As discussedabove, Class A checkpoints represent a position within the total processof generating and transmitting metadata records and may be used forrestarting data validation. Additionally, Class A checkpoints mayinclude sequential markers so that it may be determined if one of thetransmitted Class A checkpoints was not received. If it is determined atdecision block 4847 that a Class A checkpoint is to be generated, atblock 4849 the checkpoint is generated and added to the change log as arecord that will be batched and transmitted with other records containedwithin the change log. Upon addition of a Class A checkpoint to thechange log, the validation routine 4840 returns control to decisionblock 4843 and the routine continues. However, if at decision block 4847it is determined that no Class A checkpoint is to be generated, thevalidation routine 4840 returns to decision block 4843 and continues.

FIG. 49A is a flow diagram of a command processing routine forprocessing commands received by a storage location, in accordance withan embodiment of the present invention. The command processing routine4900 begins at block 4901 and at decision block 4903 a determination ismade as to whether a received command is a “start reception” command. A“start reception” command is an instruction to the storage location tobegin receiving records that are being transmitted from a productionlocation. If it is determined at decision block 4903 that the command isa “start reception” command, at block 4905 a starting point from withinthe spill log for storing received records is identified. Identificationof a location within the spill log may be determined by receiving alocation contained within the “start reception” command or as a separateinstruction. Upon identification of a location within the spill log asto where to begin storing received records, the command processingroutine 4900 passes control to the receive records routine (FIG. 49B),as illustrated by block 4907.

Referring back to decision block 4903, if it is determined that thereceived command is not a “start reception” command, at decision block4909 it is determined whether the received command is a “startapplication” command. If the received command is a start applicationcommand, at block 4911 a starting location in the spill log from whichto begin applying records is identified. As with the start receivingrecords location, identification within the spill log may be identifiedby a location being included with the “start application” command,received as a separate command, or identified by some other means. Uponidentification of a location within the spill log from which to startapplication, the command processing routine 4900 passes control to theapply change records routine (FIG. 49C).

If it is determined at decision block 4909 that the command is not a“start application” command, then the command is a Class B checkpointconfirmation and at block 4915 all records contained within the spilllog that have been applied to the copy at the storage location prior totransmission of the confirmed Class B checkpoint are purged from thelog. At block 4917 the routine completes.

FIG. 49B is a flow diagram of a receive records routine for receivingrecords at a storage location, in accordance with an embodiment of thepresent invention. The receive records routine 4920 begins at block 4921and at block 4923 the next incoming record is received. As discussedabove, transmission of records may be accomplished using any type oftransmission medium, including, but not limited to, wired, wireless,etc. At decision block 4925 it is determined whether the received recordis a Class C checkpoint. If it is a Class C checkpoint, the spill loglocation of the Class C checkpoint is added to the Class C Checkpointand the Class C checkpoint is forwarded to the data protector, asillustrated by block 4927. However, if it is determined at decisionblock 4925 that the record is not a Class C checkpoint, at decisionblock 4929 it is determined whether the record is a marker token A_(p).If the record is a marker token, at block 4931 the marker token isforwarded to the data protector.

If it is determined at decision block 4929 that the record is not amarker token, at decision block 4935 it is determined whether the recordis a Class A checkpoint. If it is determined at decision block 4935 thatthe record is a Class A checkpoint, at block 4937 the Class A checkpointand a difference list are forwarded to the data protector. If it isdetermined at decision block 4935 that the record is not a Class Acheckpoint, or after forwarding the record to the data protector (blocks4927, 4931, 4937) the received record is added to the spill log, asillustrated by block 4939. At decision block 4941 it is determinedwhether there are additional records that have been received. If thereare additional records, the receive records routine 4920 returns toblock 4923 and the routine continues. If there are no additionalrecords, the routine completes at block 4943.

FIG. 49C is a flow diagram of a apply change records routine forapplying change records to a replica at a storage location, inaccordance with an embodiment of the present invention. The applyrecords routine 4950 begins at block 4951 and at block 4953 a record isobtained from the spill log. At decision block 4955 it is determinedwhether the obtained record contains metadata about the protectedobjects. If it is determined that the record contains metadata, at block4957 the metadata is compared with a corresponding object stored on thereplica. As discussed above, metadata may be any form of identificationfor an object, such as last change time, size, a calculated checksum,etc. At decision block 4959, upon comparison of the metadata, it isdetermined whether the metadata is different. If the compared metadatais different, at block 4961 an identification of the object for whichmetadata was compared is added to the difference list. Upon addition ofthe identified object to the difference list (block 4961) or if it isdetermined at decision block 4949 that the metadata is not different,the apply change records routine 4950 continues to decision block 4965and continues. Returning back to decision block 4955, if it isdetermined that the record is not metadata, the record is a changerecord and it is applied to the replica, as illustrated by block 4963.

At decision block 4965 it is determined whether a Class B checkpointshould be generated. As discussed above, generation of a Class Bcheckpoint may be created based on any form of criteria. For examples, aClass B checkpoint may be generated after each application of a changerecord, after a predetermined period of time, etc. If it is determinedat decision block 4965 that a Class B checkpoint should be generated, atdecision block 4967 it is determined whether the difference list isempty. If it is determined that the difference list is not empty, atblock 4969 the routine 4950 waits for receipt of a Class A checkpointWaiting for a Class A checkpoint if the difference list is not emptyensures that no metadata records that generated an addition to thedifference list are lost if the system restarts. Receiving a Class Acheckpoint prior to transmission of a Class B checkpoint, ensures thatwhen the difference list is sent all metadata records that were utilizedto generate that difference list are no longer needed. If it isdetermined at decision block 4967 that the difference list is empty, orupon receipt of a Class A checkpoint at block 4969, a Class B checkpointis generated and transmitted, as illustrated by block 4971.

Referring back to decision block 4965, if it is determined that a ClassB checkpoint is not to be generated, or after transmission of a Class Bcheckpoint (block 4971), at decision block 4973 it is determined whetherthere are additional records in the spill log that have not yet beenapplied to the replica If there are additional records, the apply changerecords routine 4950 returns to block 4953 and continues. However, if itis determined at decision block 4973 that there are no additionalrecords to apply, the routine completes, as illustrated by block 4975.

Embodiments of the present invention provide the ability to protect dataat a production location using any type of backup technique, such asreplication with temporal versioning and/or archiving copies of data toremovable media. In an embodiment of the present invention, the abilityto protect data at a production location is accomplished through the useof distributed control and coordination of actions performed by agentslocated at different portions of the data protection system. Forexample, an agent may be located at the production location, storagelocation, and/or data protector location. These activities, referred toas jobs, are typically run on a scheduled basis. Because jobs ofteninvolve communication with remote agents, they are typicallyasynchronous and may take long periods of time to complete. A job is ascheduled unit of activity that can run either once or on a periodicbasis. A job consists of one or more tasks. Tasks can run eitherserially or in parallel. In addition, the job may fail when any of thetasks fail or the job may continue to execute all tasks until theyeither complete or fail.

For data protection, jobs are organized to perform a given activity forall members of a protected group. Data protection occurs through theorganization of jobs containing tasks for performing the appropriateactivities for a particular job. For example, a protection or recoveryplan includes one or more jobs and schedules for those jobs. In anactual embodiment of the present invention, jobs may be considered to beone of four different types: protection, recovery, discovery, andhousekeeping. Protection jobs perform data protection activities such asreplication, temporal version management, archive, or dataset staging.Each protection task is associated with a protected group. Recovery jobsperform data recovery from replica, datasets, archives, or a combinationthereof. Each recovery task is associated with a recovery source.Discovery jobs, such as the initial discovery routine (FIG. 25) and thescheduled discovery routine (FIG. 26), discover entities external to thedata protector. Discovery is performed for searching, navigation, autodiscovery group refresh or saved searches, and protected groupmembership determination. Housekeeping jobs perform activities necessaryfor data protection system maintenance. Housekeeping jobs include agentinstalled version survey, creation of a summary trail, media migration,and data protection system database garbage collection.

Each job of the data protection system is monitored by a job manager.The job manager monitors the overall progress of jobs, reads informationfrom a data protector database related to those jobs, and writesinformation received from those jobs to a particular portion of the dataprotector database that it maintains. For the portion of the databasethat the job manager maintains, it is the only manager of the dataprotection system that may write information to that portion of thedatabase.

FIG. 50 is a block diagram of a job containing a plurality of tasks, inaccordance with an embodiment of the present invention. As mentionedabove, a job 5000 includes one or more tasks, such as task 1 5001, task2 5002, up to any number of tasks, illustrated by task N 5003. Each taskof a job is executed and managed by a task executor, 5005, 5007. Thetask executor 5005 in executing a task, such as task 2 5002, maygenerate one or more commands that are performed by different agentsdistributed throughout the data protection system. For example, the taskexecutor 5005 may generate three different commands for task 25002, eachof which is completed by a different agent. A first command for task 25002 may be executed by agent A 5009, a second command by agent B 5011,and a third command by agent C 5013. Depending on the type of task andthe type of job, the agents 5009-5013 may execute the commands seriallyor in parallel.

Job properties apply to all tasks of a job. Specific tasks of a job mayalso have specific properties. Job and task properties for protectionjobs are determined by the intent translator as part of creating thejobs of a group plan. In an actual embodiment of the present invention,all jobs have the following properties: action on success/failure, andexecute in parallel or only serially. Additionally, any job involvingdata movement may have the following properties: encryption,compression, throttling, and collocation intents.

Each task executor 5005, 5007 may be generated as a finite state machine(FSM) executed by a common engine that transitions the FSM throughdifferent states in response to inputs, persists states, and performsrestart logic. For example, a task executor may transition based on theresponse from a previously issued command to an agent. Utilizing acommon engine allows the design of all FSM to follow a common designmethodology and for different FSMs to share the same common blocks (suchas polling to determine whether an agent is alive and obtaining statusfrom an agent).

Typically, a task executor issues commands to agents and transitionsinto and out of a wait state based on the success or failure of thosecommands, and responses provided from those commands. Additionally, atask executor 5005, 5007 may transition after a particular amount oftime has passed during execution of a task, in response to a cancelrequest (e.g., a cancel request from a user, an internal cancel requestdue to a job exceeding a maximum time allocated for that job, etc.), orin response to an internal message generated based on the state of thedatabase. At each transition the task executor persists its progressionthrough the task. Persisted progression points may be stored in the dataprotector database. Persisting progression points through a taskprovides the data protection system with robustness in the event of anunexpected termination (such as a power outage). Upon restart, the taskexecutor can refer to the persisted points and identify the appropriatestate of the task and immediately fail from that point, and perform anyclean up that may be necessary.

For example, for a data transmission job for replication, as discussedabove, a task executor issues commands to appropriate agents forperforming each task of the job. Included in those commands would be acommand issued to the clone agent to start transmission of changerecords. Likewise, the task executor issues a command to the replicationagent to begin receiving and applying records. As the agents areperforming those commands, the task executor begins a timer andtransitions to a wait state. At each transition (issuing commands,beginning waiting) the task executor persists a point of progress forthe task. A response that may be received by the task executor may be aCheckpoint, a timeout event, a cancel request, etc. Upon receiving aresponse, the task executor transitions according to the response andpersists that point in the task. This process continues until the taskcompletes either via success or failure.

If a timeout event occurs, the task executor 5005 may also poll eachagent to determine if the agents are still alive and potentially obtainupdates regarding the progress of the commands be executed by thatagent. In addition to persisting transition points thereby increasingrobustness, long-running activities are designed so that they can berestarted from intermediate points, checkpoints, so that all work is notlost in the case of a failure. For example, referring back to FIGS. 43through 47, during data transmission and validation checkpoints arecreated. Those checkpoints are obtained by a replication manager andstored in the data protection database. As discussed above with respectto FIGS. 43-47, upon restart from a failure, those checkpoints may beassessed and data transmission and validation may be resumed from apoint identified by the checkpoints.

In addition to running a task to completion, a task executor 5005, 5007,in an embodiment of the present invention, notifies a job manager oncompletion of the task and whether the task completed with success orfailure. The job manager maintains its own trail giving summaryinformation about all tasks in the job. For example, the job trail maycontain the number of tasks that completed successfully. The job manageralso persists information received from the task executors in a tasktrail in the data protector database. Additionally, a task executor mayalso maintain its own task trail with task executor specific informationrelated to the task. A task trail may include any errors encounteredduring the task as well as statistics related to the task that would beuseful to a user of the data protection system. Task type specifictrails are received and maintained by managers associated with thatparticular task. Task type specific trails may include task specificinformation, such as total time taken to move data, total time forcompleting the task, total amount of data transferred, etc. Upon restartof the data protection system, the task trail may be utilized toidentify an error path that resulted in a failure. Additionally, tasksmay maintain task private metadata That private metadata may be used atrestart to clean up a failed task and to create the task trail atcompletion (success or failure) of the task. Still further, a taskexecutor 5005, 5007 may also manage metadata associated with the task.

In the case of failure, upon restart, jobs do a very simple cleanup.They do not reschedule themselves or perform complex recovery actions.Instead, the task of the job that failed simply updates any physicalobject state and fails. The failure is recorded in the task trail andjob trail. For tasks that are important enough to warrant prompt andautomated recovery activity, the data protection system, via a healthmanager, may create a makeup job that is used to complete the job fromthe point where the task failed, or at a last checkpoint generated by atask, to completion. A health manager utilizes the task trial as well asthe state of various objects in the database to implement the morecomplex recovery mechanisms to enable data protection to proceed.

For tasks that are considered critical, such as replication, a healthmanager may monitor those tasks. In an embodiment, the health providersare instantiated by the health manager. Critical tasks, upon failure,raise failure events. The health provider monitors those events anddetermines whether any recovery needs to be performed. If recovery isnecessary, a makeup job is created and scheduled to recovery one or morefailed tasks. In addition, at system startup the health manager startsthe health providers. Each health provider makes an alternate andindependent determination whether recovery of failed tasks that may havebeen running at the time the system previously terminated are necessary.If recovery is necessary, a makeup job is created and scheduled. Amakeup job may contain a single task in the case of a single taskfailure within a failed job or all incomplete tasks from a failed jobincluding those tasks that where never started.

FIG. 51 is a flow diagram illustrating the monitoring of tasks andcreation of a makeup job, in accordance with an embodiment of thepresent invention. As described above, each action within the dataprotection system is organized in the form of a job having severaltasks. The data protector 5101 may create a job, such as replication ofprotected objects at the production location 5103 that are to betransferred and to be stored at the storage location 5105 as a result ofexecution of one or more tasks. That job is initiated by the dataprotector 5101, and each task of the job is executed by one or more taskexecutors. For example, for a replication job, the task executor issuescommands to several agents, one of which may be located at theproduction location 5103, and one of which may be located at the storagelocation 5105. Those tasks are executed and are currently in progress,and for purposes of this example, the job is interrupted andsubsequently recovers. Job interruption may occur through a systemfailure, such as a power outage. Upon recovery, the data protector 5101identifies that a task of a job was in progress prior to the systemfailure. Upon identifying that a task of a job was in progress, the dataprotector 5101 issues a command restarting the task. Upon restart of thetask, the task executor fails the task and performs simple cleanup forthe failed task. If the task was critical, the appropriate healthprovider is notified.

A makeup job is a job that picks up where the previous job left off. Themakeup job includes tasks that failed in the previous job or were notstarted in the previous job. For example, if the failed job is areplication job, the health provider identifies what task of thereplication job did not complete successfully and creates a makeup jobincluding the incomplete task and all of the other tasks that did notcomplete for that job. If the makeup job is generated in response toreceiving a failed task, the health manager identifies the failed taskand creates a job containing that task and potentially any other tasksthat are to be executed, either serially or in parallel, with that job.Upon generation of the makeup job, the health manager schedules themakeup job for execution. That makeup job then proceeds as scheduled asif it were its own job and the tasks of that makeup job are executed.Additionally, because the makeup job is scheduled as its own job, fromthe perspective of the job manager is treated as any other job and thejob manager may not know that it is a makeup job.

FIG. 52 illustrates a flow diagram of a makeup job routine foridentifying a task failure and creating a makeup job if that task wascritical, in accordance with an embodiment of the present invention. Themakeup job routine 5200 may be executed by the data protection systemor, in an actual embodiment of the present invention, it may be executedby a health manager.

The makeup job routine 5200 begins at block 5201 and at block 5203receives a task failure. As discussed above, if a task is interrupted,upon restart, the task executor restarts and fails the previouslyrunning task, issuing a task failure notification. The task executorperforms clean-up for the failed task.

At decision block 5205 the makeup job routine 5200 determines whetherthe failed task was critical. In an alternative embodiment, a user mayspecify what tasks are to be considered critical. If it is determined atdecision block 5205 that the failed task was critical, at block 5207,the incomplete task, and any associated tasks are identified. At block5209 the makeup job routine 5200 creates a makeup job for each of theincomplete tasks and at block 5211 the makeup job is scheduled.

Referring back to decision block 5205, if it is determined that thefailed task was not critical, the makeup job routine completes, asillustrated by block 5213. A task may be identified as not critical ifit is part of a routine job that is performed multiple times. Forexample, a replication job for background replication may be considereda non-critical job if the replication job is scheduled to be executedevery hour. Thus, because the replication job will proceed again asscheduled, the data protection system may determine that the tasks ofthe replication job are not critical.

In addition to determining if a makeup job should be scheduled, the dataprotector, via the job manager, in response to a task failure determineswhether the job containing the failed task should continue or also fail.If the failed task is a task that has been determined would fail thejob, then the job manager fails the associated job. Even though a taskmay be considered critical (thus necessitating a makeup job) it may notrequire that the job fail. Likewise, failure of a non-critical task mayresult in job failure. For example, when a job includes replication frommultiple data sources, failure of one of the replication tasks (acritical task) may not result in failure of the job.

As mentioned above, the data protection system includes managers thatcontrol particular portions of the data protection system. For example,the data protection system may include, but is not limited to areplication manager, a configuration manager, a health manager, asummary manager, a job manager, a media manager, an archive manger, etc.Each manager maintains a particular portion of the data protectordatabase. Each portion of the database consists of a set of tables thatcan only be written by the corresponding manager. Those tables may beread by any manager and other external applications, but since thecorresponding manager is the only one that can write data into thetables, all concurrency control and synchronization logic is owned bythe manager. The health manager, in addition to monitoring tasks andjobs, may also monitor other managers. The health manager is configuredto respond to failures of any of the tasks associated with the managerand can examine the state of the database corresponding to the managerto determine what recovery actions are necessary.

Additionally, a manager may also contain one or more task executors thatimplement the functionality of the manager. For example, the replicationmanager may contain all task executors associated with replicasincluding, but not limited to, replication task executors, temporalversioning task executors, and recovery from the temporal versions taskexecutors.

For the physical objects of the data protection system (e.g., replicas,media, disks, libraries, drives) a state model is maintained. Each statemodel describes the possible states that the object can be in and theallowable transitions between states. For example, FIG. 37 illustrates astate model for a replica, in accordance with an embodiment of thepresent invention. A state model describes the lifecycle of an objectand indicates what activities need to be performed to transition theobject from one state to another. For example, when a replica is in theinvalid state 3705 (FIG. 37), base on that state, the data protectionsystem knows that a validation job should be performed to place thereplica in a valid state 3711. The state of an object is often an inputto the health provider.

Maintaining a state model maintains a known state that may be utilizedby the health provider for recovery and thus, simplifies error handling.Additionally, by monitoring the state of objects a user is presentedwith how the data protection system handled any error conditions.

The data protection system also monitors events generated by portions ofthe data protection system and provides reports to a user regarding theoverall status of the data protection system itself. Alternatively, thereports may provide specific information about different physicalobjects within the data protection system. For example, if a server atthe production location is unavailable, a report error may be generatedinforming the user of the problem and providing a suggested solution.

Events are reviewed by the data protection system and based on thatreview, a report regarding the review events is generated. That reportis classified into one of three categories: informational, warning, orerror. Overall if the report is an error report, it identifies that useraction is necessary. If the report is a warning report, it identifiesthat no immediate user action is necessary, but may become necessary ifthe warning is not resolved, either automatically or by the user.Finally, if the report is an informational report, it informs the userthat no action is required from the user, and provides informationregarding the data protection system. As one who is skilled in the artwill appreciate, reports may be presented in any form in addition to, orin alternative to informational, warning, and error.

The reports are created by reviewing events generated by differentportions of the data protection system. Based on those events, the dataprotection system compiles a report regarding the events and the stateof that portion of the data protection system. Thus, a user is notprovided with all of the events generated by the data protection systemand instead is provided with a report that has been categorized intoeither an informational report, warning report, or error report. Theprovided report may, if necessary, include a suggested resolution to aproblem detected by the data protection system. Reports may be generatedregardless of whether a task failed on the last job. For example, asillustrated below, even if the last copy job succeeded (block 5409), ifthe disk space used for maintaining the copy at the storage locationexceeds a predetermined threshold (block 5411) an event is generatedthat the data protection system classifies as a warning and a warningreport is provided to the user (block 5413) informing the user that theymay want to allocate more disk space.

Report types (informational, warning, error) may be determined byanalyzing particular portions of the data protection system. Forexample, referring to the temporal version diagnosis routine 5700 (FIG.57), the number of missed temporal versions over a predetermined periodof time and a total retention period are computed (block 5725) and adecision on the report classification (warning, error) is determinedbased on the percentage of missing temporal versions over those timeperiods.

Additionally, in some instances, a series of tests may be performed todetermine the suggestions that are to be included in the report. Forexample, in the copy diagnosis routine 5400, if it is determined thatthe copy is not valid 5403 and a validation job failed 5445 the dataprotection system proceeds to determine, via a series of tests (decisionblocks 5447, 5451, 5455, 5459), what suggested solution should beincluded in the error report generated to the user. A similar example isillustrated in the recovery diagnosis routine 5900 (FIG. 59). Inparticular, if it is determined that a job failed 5911, the dataprotection system determines, via a series of tests (decision blocks5917, 5921, 5925, 5929), what suggested solutions should be included inthe error report.

FIG. 53 illustrates a flow diagram for diagnosing problems associatedwith copies of data and for generating a report with suggestedcorrections if a problem is detected, in accordance with an embodimentof the present invention. As mentioned above, the reports may becategorized into one of three states: error, warning, and informational.

The diagnosis routine 5300 begins at block 5301 and at block 5303 theroutine performs the copy diagnosis routine, as described in detail withrespect to FIGS. 54-56. In addition to performing the copy diagnosisroutine 5303, the diagnosis routine 5300 performs a temporal versiondiagnosis routine, as described with respect to FIGS. 55-58. Finally,the diagnosis routine 5300 determines if there are any other warningsthat have been issued by the data protection system.

At decision block 5309 a determination is made as to whether there wereany errors detected in any one of the copy diagnosis routine, temporalversion diagnosis routine, or provided by other warnings. If it isdetermined at decision block 5309 that an error has been detected, atdecision block 5311 a error report is generated describing the error andproviding a user with suggested steps to be taken to resolve thereported error. However, if it is determined at decision block 5309 thatno errors are detected, at decision block 5313 a determination is madeas to whether there were any warnings that were generated from any oneof the copy diagnosis routine, temporal version diagnosis routine, orprovided by other warnings. If it is determined at decision block 5313that a warning was detected, at block 5315 a warning report is generateddescribing the warning to a user and providing the user with potentialsteps that may be performed for resolving the warning. Finally, if it isdetermined at decision block 5313 that no warning was detected, atdecision block 5317 an informational report is generated informing theuser that there are no problems with the data protection system and thatit is protecting the information as requested by the user.

By proceeding through each of the routines of block 5303, 5305, and 5307and then determining the most serious problem of those routines(decision blocks 5309, 5313) any potential problems may be provided as asingle report. For example, if an error is identified, the error andsuggested solution may be presented and any warning or informationalreports may be withheld until the more severe problem, the error, isresolved.

FIG. 54 illustrates a flow diagram describing the details of a copydiagnosis routine for diagnosing potential problems with the copying ofdata in the data protection system, in accordance with an embodiment ofthe present invention. The copy diagnosis routine may be utilized forany type of storage, such as replica storage, archive, or both replicaand archive. As described in detail below, the copy diagnosis routine5400 determines whether the last copy task succeeded or failed. If thelast copy task failed then different paths are followed based on whetherthe copy mode is background or backup (block 5417). Since a task thatruns once a day and fails is much more significant than a task that runsevery hour that fails, different reports are generated based on thosefailures. For example, if the mode is background and a task fails aninformational report may be provided to the user if the number offailures has not exceeded a predetermined lower limit. Alternatively,for background mode, no report may be generated for tasks that arescheduled to run frequently, as a subsequent execution of that task mayresolve the problem automatically. In contrast, if the copy mode isbackup and a task fails, either a warning report or an error report isprovided to the user.

The copy diagnosis routine 5400 begins at block 5401, and at decisionblock 5403 a determination is made as to whether the copy is valid. Ifit is determined at decision block 5403 that the copy is valid, atdecision block 5405 a determination is made as to whether a copy job iscurrently running. If it is determined at decision block 5405 that acopy job is running, at block 5407 the data protection system generatesan informational report identifying the last state of the copy andproviding an indication to a user that a copy job is currently running.

However, if it is determined at decision block 5405 that a copy job isnot currently running, at decision block 5409 a determination is made asto whether the last copy job succeeded. If it is determined at decisionblock 5409 that the last copy job did succeed, a determination is madeat decision block 5411 as to whether a disk usage threshold warning wasgenerated from the last copy job. A disk usage threshold warning isgenerated in response to the data protection system identifying that theportion of the storage location for which the copy is currently beingstored is running low on available disk space. For example, wheneverdisk space on a replica is running low or, when archive is performed todisk rather then tape media and either media in the pool is running lowor media in the free pool is running low, a disk usage threshold warningmay be generated. This threshold level is a predetermined and presetsize value that when reached generates a threshold warning.

If it is determined at decision block 5411 that a disk usage thresholdwarning has been generated, at block 5413 a warning report is generatedindicating that disk usage at the storage location has exceeded thepredetermined threshold value and provides a suggestion that additionaldisk space be allocated for the copy. In an alternative embodiment, inaddition to generating a warning report informing a user of thethreshold warning, the data protection system may also check to see ifthe warning is still applicable by confirming the current disk spacestatus for the copy.

If it is determined at decision block 5411 that a disk usage thresholdwarning was not generated, at block 5415 an informational report isprovided to a user indicating that there is no problem associated withthis portion of the data protection system.

Referring back to decision block 5409, if it is determined that the lastcopy job did not succeed, a determination is made at decision block 5417as to whether the mode of protection is in background mode. As describedherein, background mode of protection is the operational mode for thedata protection system in which copying is nearly continuous. Forexample, every hour, 24 hours a day, seven days a week. Alternatively,the mode of copying may be a backup mode. A backup mode of protection isan operational mode in which copying is relatively infrequent. Forexample, archiving and/or replication may occur nightly.

If it is determined at decision block 5417 that the mode of copying isbackground, at block 5419 the number of previously failed copy jobs iscomputed. At decision block 5421 a determination is made as to whetherthe number of failed copy jobs computed at block 5419 has exceeded apredetermined lower limit. If it is determined at decision block 5421that the number of previously failed copy jobs has not exceeded apredetermined lower limit, at block 5422 an informational report isgenerated informing the user that the data protection system iscurrently operating as expected. Calculating the number of failed copyjobs and comparing it to limits to determine whether to generate areport, provides an opportunity for the data protection system toresolve the problem without needed to notify the user. For example, ifcopy jobs are being generated hourly and one if missed, the dataprotection system may resolve this problem the following hour if thecopy job completes successfully.

However, if it is determined at decision block 5421 that the number ofpreviously failed copy jobs has exceed the predetermined lower limit, atdecision block 5423 a determination is made as to whether the number ofpreviously failed copy jobs has exceeded a second higher limit. If it isdetermined that the number of previously failed copy jobs has not exceeda predetermined higher limit, at block 5424 a warning report isgenerated informing the user of the number of copy jobs that havefailed. That warning report also informs the user that the number offailed copy jobs did not reach a predetermined higher (critical) numberand that no action is currently required by the user.

If it is determined at decision block 5417 that the mode of protectionis not in the background mode, i.e., it is in the backup mode, or it isdetermined at decision block 5423 that the number of failed copy jobsexceeds a predetermined higher limit, the copy diagnosis routine 5400obtains a reason for the last task failure, as illustrated by block 5425(FIG. 55). In an embodiment of the present invention, the reasons forfailures of copy jobs may be obtained from task trails that aregenerated by tasks contained within the copy job itself. As describedabove, task trails include metadata about the task itself, what the taskwas doing, that the task completed, or why the task failed.

At decision block 5427 a determination is made as to whether the reasonfor the failure was that the user canceled the previous copy job. If itis determined at decision block 5427 that the copy job failed due to auser canceling that job, the notification of a copy failure is ignored.However, if it is determined at decision block 5427 that the previouscopy failed for a reason other than being canceled by the user, atdecision block 5431 a determination is made as to whether the previouscopy job failed because the data protection system was unable to contactthe production location. Inability to contact a production location mayresult from several different types of external events such as a networkoutage, a power supply problem, or that the production server wascurrently shut down for maintenance or other operations.

If it is determined at decision block 5431 that the last copy job failedbecause the data protection system was unable to contact the productionlocation, at block 5433 a report is generated identifying to a user thatthe previous copy job did not complete successfully and providing asuggestion to the user that they check the network and/or productionlocation in an effort to determine why the data protection system wasunable to contact the production location.

If it is determined at decision block 5431 that the previous failure didnot occur because the data protection system was unable to contact theproduction location, at decision block 5435 a determination is made asto whether the previous failure occurred because the data protectionsystem was unable to contact the agent performing the copying. If it isdetermined that the failure occurred due to inability to contact theagent doing the copying, a warning report is generated informing theuser of the error and providing a suggestion that the user check theagents and possibly restart the routine and/or check the agentinstallation and/or reinstall the agent if necessary, as illustrated byblock 5437.

However, if it is determined that the previous failure was not due touser cancellation (block 5427), inability to contact the productionlocation (block 5431) or inability to contact an agent (block 5435), theproblem is unknown and an error is generated informing a user that thedata protection system was not able to determine the cause of thefailure and providing a suggestion that the user check the networkconnection and the agents involved in copying.

Referring back to FIG. 54, if it is determined at decision block 5403that the copy for which diagnosis is being performed using the copydiagnosis routine 5400 is not valid, at decision block 5437 (FIG. 56) adetermination is made as to whether the copy that is being diagnosed isinvalid (i.e., it is in the invalid state 3705 FIG. 37). If it isdetermined at decision block 5437 that the copy being diagnosed isinvalid, at block 5439 the copy diagnosis routine notifies the user thatthe copy for the data source is not initialized. In an alternativeembodiment, at block 5439 a report may be provided to a user identifyingthat the copy for the particular data source that is being diagnosed isnot initialized and asking the user whether it wants to generate aninitialization job.

If it is determined at decision block 5437 that the copy is invalid, atdecision block 5441 a determination is made as to whether a validationjob is currently running on the copy being diagnosed. If it isdetermined at decision block 5441 that a validation job is currentlyrunning for the particular copy being diagnosed, at block 5443 a warningreport is generated informing a user that the copy being diagnosed iscurrently being validated by a validation job and that no action iscurrently necessary.

If it is determined at decision block 5441 that a validation job is notrunning, at decision block 5445 the copy diagnosis routine 5400determines whether a previous validation job ran and failed. If it isdetermined at decision block 5445 that a validation job did run andfailed, a determination is made at decision block 5447 as to whether thefailure was a result of cancellation of the validation job by a user. Ifit is determined at decision block 5445 that a previously run validationjob did not fail, or that a previously run validation job did fail andthat failure was a result of being canceled by the user, at block 5449an error report is generated informing the user of the failure andsuggesting that a user run a validation job. Alternatively, thevalidation job may be run automatically.

However, if it is determined at decision block 5447 that a previouslyrun validation job that failed, failed for reasons other than beingcanceled by a user, at block 5449 the reason for that failure isobtained from the task trails associated with the previous validationjob. Utilizing the reasons for the failure obtained in block 5449, thecopy diagnosis routine 5400 determines at decision block 5451 whetherthe previously run validation job that failed, failed because the amountof the storage location available for the copy was full. If it isdetermined at decision block 5451 that the space for the copy at thestorage location was full, at block 5453 an error is reported informingthe user that the storage location is full and providing a suggestionthat the user allocate more disk space for storage of the copy.Allocating more disk space may include adding additional disk space fora replica.

If it is determined at decision block 5451 that the failure was not aresult of the insufficient space, at block 5455 a determination is madeas to whether the failure was a result of the data protection system notbeing able to reach the storage location at all. If it is determined atdecision block 5455 that the data protection system was not able toreach the storage location in order to validate the copy, an errorreport is generated. The error report informs the user that the storagelocation was inaccessible and suggests that the user check thecommunication between the data protection system and the storagelocation, communication with the target volume, and the integrity of thestorage location itself.

If it is determined at decision block 5455 that the failure was not aresult of the storage location being inaccessible, at decision block5459 a determination is made as to whether there was a change logoverflow at the production location. A log overflow may result from toomany changes being queued in the change log at the production locationand/or the spill log at the storage location becoming full. This mayoccur if change records and validation records are being generatedfaster than they are being transmitted to or processed at the storagelocation. If it is determined at decision block 5459 that the failurewas a result of a log overflow, an error report is generated informingthe user of the log overflow and indicating that the log has overflowedand suggesting that the log be resized appropriately, as indicated byblock 5461.

Finally, if the copy diagnosis routine 5400 determines at decision block5459 that the failure was not a result of a log overflow, at block 5463an error report is generated informing the user of the failure andsuggesting that the user check the production server, the data protectorand the storage server for potential communication problems or otherpotential problems, and if the failure continues, to reinitialize thedata protection system.

Another example of diagnosing protection problems is the diagnosis oftemporal versions. The temporal version diagnosis routine is mentionedwith respect to the overall diagnosis routine described in FIG. 53(block 5305) and described in more detail with respect to FIG. 57.

FIG. 57 illustrates a flow diagram describing a temporal versiondiagnosis routine for diagnosing potential problems with a temporalversion generated by the data protection system, in accordance with anembodiment of the present invention. The temporal version diagnosisroutine 5700 begins at block 5701 and at decision block 5703 adetermination is made as to whether the copy for which a temporalversion is being created is in a valid state. If it is determined atdecision block 5703 that the copy for which a temporal version is beinggenerated is in a valid state, at decision block 5705 a determination ismade as to whether the last temporal version job of that copy succeeded.If it is determined at decision block 5705 that the last temporalversion job of the copy did not succeed, at decision block 5707 thereason for the failure of the temporal version job is obtained from thetask trails associated with the task of the temporal version job.

At decision block 5709 an error report is generated providing anexplanation and suggesting to the user that a temporal version be takenagain. In an alternative embodiment, in addition to generating a reportproviding an explanation, the data protection system may automaticallyschedule a temporal version job for taking a subsequent temporalversion.

Referring back to decision block 5703, if it is determined that the copyfor which the temporal version is to be taken is not in a valid state,the temporal version diagnosis routine 5700 continues as described abovewith respect to the blocks illustrated in FIG. 56.

If it is determined at decision block 5705 that the last temporalversion job of a valid copy did succeed, at decision block 5711 adetermination is made as to whether a temporal version was actuallytaken. If it is determined at decision block 5711 that a temporalversion was not actually taken, a determination is made at decisionblock 5713 as to whether there was a copy job failure. If it isdetermined at decision block 5713 that there was a copy job failure, thetemporal version diagnosis routine 5700 continues as described abovewith respect to the blocks illustrated and described in FIG. 55.

However, if it is determined at decision block 5711 that no temporalversion was taken, and it is determined at decision block 5713 thatthere was no copy job failure, this identifies to the data protectionsystem that there was no activity on the copy and therefore no temporalversion was necessary. Additionally, because there are no problems withthe copy, and/or the temporal version, at block 5715 an informationalreport is generated informing the user that there has been no activityon the copy and therefore no temporal version was taken.

Referring back to decision block 5711, if it is determined that atemporal version job was performed and a temporal version taken, adetermination is made as to whether the oldest intended temporal versionis available should recovery be necessary, as illustrated by decisionblock 5721 (FIG. 58). Determining if the oldest intended temporalversion is available confirms whether or not the duration intent isbeing satisfied. For example, if the duration is to be able to recoverinformation that is at least one year old, and the oldest intendedtemporal version (one year old) is available, confirms that the durationintent is being satisfied. If it is determined at decision block 5721that the oldest intended temporal version is not available for recovery,an error report is generated informing the user that the oldest intendedtemporal version is not available and that the most likely cause of thisis due to lack of disk space. The error report also provides asuggestion to the user to allocate more disk space for the temporalversions, as illustrated by block 5723.

If it is determined at decision block 5721 that the oldest intendedtemporal version is available, at block 5725 the temporal versiondiagnosis routine 5700 computes a number of missing copies over apredetermined time period, and computes a total number of missing copiesover the total retention period. A predetermined time period for whichmissing temporal versions are computed may be any predetermined lengthof time, such as one week, two weeks, one month, etc., that is less thanthe total retention period. The total retention period is identified bythe user in setting up the protection intents when identifying the totallength of time for which the user wants to be able to recover protectedobjects. Computing the number of missing copies confirms whether thefrequency intent is being satisfied.

At decision block 5727 a determination is made as to whether there ismore than 0% of temporal versions missing over the predetermined timeperiod for which missing copies was computed at block 5725. If it isdetermined at decision block 5727 that there are no temporal versionsmissing, at decision block 5729 a determination is made as to whetherless than 50% of the temporal versions over the total retention periodare missing. If it is determined at decision block 5729 that the numberof missing temporal versions over the total time period is less than50%, an informational report is generated informing the user that noproblems currently exist with the temporal version portion of the dataprotection system, as illustrated by block 5731. As discussed above, bynot immediately reporting a problem, the data protection system has theopportunity to resolve any problem without the need of user involvement.For example, if it is determined that the number of missing copies overthe total time period is 10% but future copy jobs complete successfully,this percentage will decrease over time, without the need of alerting auser.

However, if it is determined at block 5729 that more than 50% of thetemporal versions are missing over the total time period, a warningreport is generated identifying the percentage of temporal versions thatare currently missing and suggesting that no action is necessary otherthan continued monitoring of the percentage of missing temporalversions, as illustrated by block 5733.

If it is determined at decision block 5727 that there are some temporalversions missing over the predetermined time period, at decision block5735 a determination is made as to whether the missing number oftemporal versions over that predetermined time period is between 0% and20%. If it is determined at decision block 5735 that the number ofmissing copies over the predetermined time period is between 0% and 20%,at decision block 5737 a determination is made as to whether the numberof missing temporal versions over the total retention period is lessthan 50%. If it is determined at decision block 5737 that the number ofmissing temporal versions for the total retention period is less than50%, at block 5739 a warning report is generated providing thepercentage of temporal versions missing and suggesting that no action isrequired other than to monitor the percentage of missing temporalversions.

However, if it is determined at block 5737 that the percentage ofmissing temporal versions over the total retention period is greaterthan 50%, at block 5741 an error report is generated informing the userof the percentage of temporal versions that are missing. Additionally,the error report generated at block 5741 informs the user thatprotection is not performing as expected and suggests that the usercheck the protection parameters identified and the disk setup for theproduction location and the storage location.

Referring back to decision block 5735, if it is determined that thepercentage of temporal versions missing over the predetermined timeperiod is not between 0% and 20%, a decision is made at decision block5743 as to whether the number of missing temporal versions over thetotal retention period is less than 50%. If it is determined at decisionblock 5743 that the total number of missing temporal versions over theentire retention period is less than 50%, at block 5745 an error reportis generated informing the user that protection is not performing asexpected, providing the user with the total percentage of missingtemporal versions over the total retention period and suggesting thatthe user check the integrity of the copy itself and to check theprotection schedule. Finally, if it is determined at decision block 5743that the number of missing temporal versions over the total retentionperiod is greater than 50%, an error report is generated informing theuser that protection has been consistently bad and suggesting that theuser check protection and disk setup at both the production location andthe storage location, as illustrated by block 5747.

While specific percentages have been utilized for the above discussionof the temporal version diagnosis routine 5700, it will be appreciatedby one of ordinary skill in the relevant art that any predeterminedpercentages may be utilized with embodiments of the present inventionand the ones provided herein are intended for explanation purposes only.

FIG. 59 is a flow diagram describing a recovery diagnosis routine fordiagnosing potential problems with recovery of information in the dataprotection system, in accordance with an embodiment of the presentinvention. The recovery diagnosis routine 5900 begins at block 5901 andat decision block 5903 a determination is made as to whether a recoveryjob is currently running. If it is determined at decision block 5903that a recovery job is currently running, at decision block 5905 therecovery diagnosis routine 5900 determines if any warnings have beengenerated from tasks associated with the running recovery job. If it isdetermined at decision block 5905 that no warnings have been generatedby the task associated with the running recovery job, an informationalreport is generated informing a user that no recovery-related problemsfor the data protection system exist. If it is determined at decisionblock 5905 that warnings have been generated from a task associated withthe currently running job, at block 5909 a warning report is generatedinforming the user that a currently running recovery job has generatedone or more warnings and informs the user of those warnings and providessuggested approaches to resolving those warnings, if any resolution isnecessary. For example, a currently running job may generate a warningindicating that it was unable to restore a file because it is currentlyopen.

If it is determined at decision block 5903 that no recovery job iscurrently running, at decision block 5911 a determination is made as towhether a recent recovery job (e.g., a recovery job that was executedwithin the last seventy-two hours) failed to complete. If it isdetermined at decision block 5911 that no recent recovery jobs failed tocomplete, i.e., all completed successfully or there was no recovery jobperformed, at block 5913 a report is generated informing the user thatthere are no problems associated with the recovery portion of the dataprotection system.

If it is determined at decision block 5911 that the recently runrecovery job did fail, at block 5915 a reason for the failure of thatjob is obtained from the task trails associated with that job. Asdescribed above, task trails for tasks associated with a particular jobcontain information about the task itself including why a task failed ifthe task did fail.

At decision block 5917, utilizing the reason for the failure obtained inblock 5915, a determination is made as to whether the failure of therecovery job was a result of the data protection system being unable tocontact the production location to where the data was to be recovered.If it is determined at decision block 5917 that the reason for therecovery job failure was that the data protection system was unable tocontact the production location, at block 5919 an error report isgenerated informing the user of the reason for the last recovery jobfailure and suggesting that the user check the network connections atthe production location and check the agent on the production locationto ensure that the agent is operating properly. As described above withrespect to the copy diagnosis routine (FIGS. 54-56), being unable tocontact a location, such as the production location, may be a result ofseveral external events such as a network outage, a power problem, orthe production location being taken offline for maintenance or otheroperations.

If it is determined at decision block 5917 that the reason for therecovery job failure is not a result of the data protection system beingunable to contact the production location, at decision block 5921 it isdetermined whether the reason for the recovery job failure was a resultof the target on a production location not being available. A target ona production location may be the physical portion of the productionlocation to which the recovered data is to be recorded. If it isdetermined at decision block 5921 that the target was not available, anerror report is generated, as illustrated at block 5923, informing theuser of the reason for the recovery job failure and suggesting that theuser check the physical location on the production server for potentialproblems.

If it is determined at decision block 5921 that the recovery job failurewas not a result of the target on the production location beingunavailable, at decision block 5925 it is determined whether the reasonfor the recovery job failure was that a task of the recovery job wasunable to read data from the storage location. If it is determined thata task of the recovery job was unable to read data from the storagelocation, at block 5927 an error report is generated informing the userof the reason for the recovery job failure and providing a suggestionthat the user check the disk and/or media at the storage location.

If it is determined at decision block 5925 that the reason for therecovery job failure was not a result of a task being unable to readfrom the storage location, at decision block 5929 a determination ismade as to whether the disk at the production location to where therecovery data is to be recovered is currently full. If it is determinedat decision block 5929 that the disk is full, at block 5931 an errorreport is generated informing the user that the disk at the recoverylocation does not have sufficient room for recovering the requested dataand suggesting that the user recover the data to an alternate locationor increase the disk space at the production location.

Finally, if it is determined at decision block 5929 that the reason forthe recovery job failure was not a result of the disk at the productionlocation being full, a report is generated informing the user that anunknown error has occurred in the previous recovery job and suggestingthat the user rerun the recovery job.

While the preferred embodiment of the invention has been illustrated anddescribed, it will be appreciated that various changes can be madetherein without departing from the spirit and scope of the invention.

The embodiments of the invention in which an exclusive property orprivilege is claimed are defined as follows:
 1. A method for diagnosingdata at a storage location, comprising: diagnosing a copy of datalocated at the storage location; diagnosing a temporal version of thecopy of data; determining if an error was detected; if in response todetecting an error, reporting the error and providing a suggestedsolution; determining if a warning was detected; and if in response todetecting a warning, reporting the warning and providing a suggestedsolution wherein diagnosing a temporal version includes, determining apercentage of temporal versions that are missing over a total period oftime.
 2. The method of claim 1, wherein diagnosing a copy includes,determining if the copy is valid.
 3. The method of claim 1, whereindiagnosing a copy includes, determining if a copy job is currentlyrunning.
 4. The method of claim 1, wherein diagnosing a copy includes,determining if a last copy job completed successfully.
 5. The method ofclaim 1, wherein diagnosing a copy of data includes, diagnosingreplication failures for the copy of data.
 6. The method of claim 1,wherein diagnosing a copy includes, computing a number of failed copyjobs.
 7. The method of claim 1, wherein diagnosing a copy includes,determining whether a threshold has been reached.
 8. The method of claim1, wherein diagnosing a temporal version includes, determining if thecopy is valid.
 9. The method of claim 1, wherein diagnosing a temporalversion includes, determining if the last temporal version completedsuccessfully.
 10. The method of claim 1, wherein diagnosing a temporalversion includes, determining if a temporal version was taken.
 11. Themethod of claim 1, wherein diagnosing a temporal version includes,determining if the oldest intended temporal version is available.
 12. Amethod for diagnosing data at a storage location, comprising: diagnosinga copy of data located at the storage location; diagnosing a temporalversion of the copy of data; determining if an error was detected; if inresponse to detecting an error, reporting the error and providing asuggested solution; determining if a warning was detected; and if inresponse to detecting a warning, reporting the warning and providing asuggested solution wherein diagnosing a temporal version includes,determining a percentage of temporal versions that are missing over apredetermined period of time.
 13. A method for diagnosing a copy ofdata, comprising: determining if the copy is invalid; in response todetermining that the copy is invalid, determining if a validation job iscurrently running; determining if a validation job failed; and reportingan appropriate response; and further comprising: determining if there issufficient space for the copy; and in response to a determination thatthere is not sufficient space for the copy, providing an error reportand a suggested solution.
 14. A method for diagnosing a copy of data,comprising: determining if the copy is invalid; in response todetermining that the copy is invalid, determining if a validation job iscurrently running; determining if a validation job failed; and reportingan appropriate response; and further comprising: determining if thetarget is not reachable; and in response to a determination that thetarget is not reachable, reporting an error and providing a suggestedsolution.
 15. A method for diagnosing a copy of data, comprising:determining if the copy is invalid; in response to determining that thecopy is invalid, determining if a validation job is currently running;determining if a validation job failed; and reporting an appropriateresponse; and further comprising: determining if the copy depends onmonitoring; in response to determining that the copy depends onmonitoring, determining if there is an interruption in the monitoring;and in response to a determination that there is an interruption in themonitoring, reporting an error and providing a suggested solution.
 16. Amethod for diagnosing a copy of data, comprising: determining if thecopy is invalid; in response to determining that the copy is invalid,determining if a validation job is currently running; determining if avalidation job failed; and reporting an appropriate response; andfurther comprising: determining if a copy job is running; and inresponse to a determination that a copy job is running, providing a laststate of a data source and indicating that a job is running.
 17. Amethod for diagnosing a copy of data, comprising: determining if thecopy is invalid; in response to determining that the copy is invalid,determining if a validation iob is currently running; determining if avalidation job failed; and reporting an appropriate response; andfurther comprising: determining if a last replication succeeded; and inresponse to a determination that a last replication succeeded,determining if a threshold value had been reached.
 18. In a dataprotection system having a production location, a storage location, anda communication path for transmitting data between the productionlocation and the storage location, a method for diagnosing a temporalversion, the method comprising: determining if an oldest intendedtemporal version is available; in response to determining that theoldest intended temporal version is available, computing a missingnumber of temporal versions over a predetermined period of time; andreporting a response dependent upon a percentage of missing temporalversions over the predetermined period of time.
 19. The method of claim18, further comprising: computing a number of temporal versions missingover a total period of time; and reporting a response dependent upon thenumber of temporal versions missing over the total period of time. 20.The method of claim 18, wherein the response is a warning.
 21. Themethod of claim 18, wherein the response is an error.
 22. The method ofclaim 18, further comprising: determining whether a previous temporalversion succeeded.
 23. The method of claim 18, further comprising:determining if a temporal version was taken.
 24. In a data protectionsystem having a production location, a storage location, and acommunication path for transmitting data between the production locationand the storage location, a method for diagnosing a recovery of datafrom the storage location to the production location, the methodcomprising: determining if a recovery job failed; in response todetermining that a recovery job failed. obtaining a reason for thefailure; reporting an error identifying the failure; and providing arecommendation to resolve the failure wherein the failure is that aproduction location was inaccessible.
 25. In a data protection systemhaving a production location, a storage location, and a communicationpath for transmitting data between the production location and thestorage location, a method for diagnosing a recovery of data from thestorage location to the production location, the method comprising:determining if a recovery job failed; in response to determining that arecovery job failed, obtaining a reason for the failure; reporting anerror identifying the failure; and providing a recommendation to resolvethe failure wherein the failure is that a target location isinaccessible.
 26. In a data protection system having a productionlocation, a storage location, and a communication path for transmittingdata between the production location and the storage location, a methodfor diagnosing a recovery of data from the storage location to theproduction location, the method comprising: determining if a recoveryjob failed; in response to determining that a recovery iob failed,obtaining a reason for the failure; reporting an error identifying thefailure; and providing a recommendation to resolve the failure whereinthe failure is that a disk is full.
 27. In a data protection systemhaving a production location, a storage location, and a communicationpath for transmitting data between the production location and thestorage location, a method for diagnosing a recovery of data from thestorage location to the production location, the method comprising:determining if a recovery job failed; in response to determinina that arecovery job failed, obtaining a reason for the failure; reporting anerror identifying the failure; and providing a recommendation to resolvethe failure; and further comprising: determining if a recovery job is inprogress; in response to determining that a recovery job is in progress,determining if a warning has been reported; and providing a responsedependent upon whether a warning has been reported.